开发者

Highlight fields in InfoPath that have changed

开发者 https://www.devze.com 2022-12-22 03:12 出处:网络
I am able to highlight fields in InfoPath if they are \"new\" by setting the conditional formatting to \"set this field to yellow if the value is not blank\"

I am able to highlight fields in InfoPath if they are "new" by setting the conditional formatting to "set this field to yellow if the value is not blank"

What I'm trying to do though is highlight fields when the value is changed. That is, when the value it pulled from the webservice is not the cu开发者_开发技巧rrent value of the field.

The forms in question have a large number of fields. So I would prefer not to use some sort of flag field for each field.


What I've done so far, for non-repeating fields, I've added a "flag field" for each non-repeating field. Then set a rule on the field that when it's been changed to set the flag field to "true" and set conditional formatting on the field that if the flag field is "true" then set the background to yellow.

This works, but requires a flag field for each field on the form. Haven't figured out how to do repeating fields yet.


Did figure out repeating fields.

We've added a field called IsDirty to the data source object that repeats. then followed the same process in the repeating sections, on the field set a rule that when the value's changedthe isdirty is set to true. Then a conditional formatting that if Isdirty==true, se the field's background to yellow.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号