Highlight fields in InfoPath that have changed - infopath

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 current 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.

Related

New field not visible in field group on form

I have added an extra field to a field group, which already contained 4 fields, this field group is used on the form: smmBusRelTable.
The 4 existings fields are appearing without problems, the new field isn't showing up in the form.
The field is visible.
The field exists in the field group on the form.
I have resetted my personalise screen on that form.
I can add the field through personalise, but it won't show up.
It has no CountryCode filled in.
Any ideas?
Some things to try:
Right clicking on the form and click restore.
Go to the control (group, grid, etc) you're expecting to see the fields in, and verify the DataGroup property has the correct Field Group selected. Try clearing this property, saving, then adding it back again.
The init method on the form, set the visible parameter of the field on false. That is why the field showed when i added the field group on a new form.

Access 2010 : Allow combox box search, but lock for edit

I'm just reacquainting myself with Access after a long absence and am getting hung up on some relatively minor things !!
I have a form designed so users can select a ReportID from a combo box and the other fields in the form populates the information. That works great, however I don't want users to be able to update the fields, it's for reference only.
If I lock the form for editing then the combo box select doesn't work - is there a way that I can have a combo box control a form, but not allow editing or updating of any other returned fields ?
Set the fields Locked property to Yes.
You have to change two properties of Combo Box under Data tab Under properties. Following are the properties to be changed:
"Limit To List" the default value for "Limit To List" is "No" change this to "Yes"
"Allow Value List Edits" the default value for "Allow Value List Edits" is "Yes" change this to "No"
After doing this modifications on the default values the user will be allowed to modify the text in the Combo Box, but when the user is leaving the Combo Box the BeforeUpdate event will be fired and the user will get an exclamation message from MS Access.
See the below given pictures for more clarity. The first picture shows the default values, second picture shows changed values and the third picture shows the message if values are edited.
Default Value [1]
![1]: https://i.stack.imgur.com/RxUUa.png
Change To [2]
![2]: https://i.stack.imgur.com/rLnSM.png
Message from MS Access [3]
![1]: https://i.stack.imgur.com/kbPmc.png
**
Kindly reply to this message if this solves your problem.
**
Make sure your combobox is unbound (not linked to a field by its ControlSource property)
position it in the form header (not the Detail section)
set the form's Filter property to the combobox using the expression builder (button with '...')
also set the form's FilterOn property to true
http://msdn.microsoft.com/en-us/library/office/ff194672%28v=office.14%29.aspx

InfoPath 2010 field validation in repeating section

I would like to put simple validation when check box is checked it should make one of the field mandatory to fill.Here is my form,
All checkboxes are bind with "Control1" Question section and the field I want to validate is bind with "Value" of Answers section. Problem is whatever condition I write it's getting repeated for all the check boxes. For example, All the check boxes has some unique id like QUE1 so even if I would like to use unique id on check boxes it's not working because same is applying to all the check boxes.
Any idea how to achieve this?

Can we copy the value of one field to another in a repeating table of infopath form?

Hi guys can anyone tell me how to copy a field value in a repeating table to another field when we insert another row. It is just like amazon checkout process. In Amazon checkout process we have to click a check box when our billing address is same as our shipping address.
In this scenario am having one text box and drop down box fields in a repeating table. When am writing something in the text box and inserting another row. here come the problem I have inserted a value in the drop down box, when the value is selected in the drop down box the textbox value from the parent should be copied to the child node. This has to be done without any code behind.
Please help me regarding this issue
You could probably do this using the default value of the child node.
The default value can reference another field either on your main datasource or any secondary datasource.
I would assume that you don't want this updating when the user adds another child node. If that is the case then you will need to uncheck the "Update this value when the value of the foumlua is recalculated."

optional CCK field automatically replacing another field in a View

I have a content type with 2 CCK text area fields.
The first field is always filled.
The second fields is optional.
Now: I have 2 Views.
In the first View the first field is always displayed.
In the second View the first 2 lines of the first field are displayed. However if the second field is filled, the first field should be ignored.
How can I make this. I need an option in the content type specifying if I should use the second field rather than the first one ? (For the second view)
I hope it is clear. Thanks
Create a template for the view and use if and else statements to only show what you want to be shown.

Resources