Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I had created one input field, after reload I can able to edit the values of field. But when I reload it is not replacing with data source values.
Thanks,
Yaseen
Hi Yaseen,
I also faced same issue. Hope some one can help us on this.
Thanks,
Jagan
This is the default behavior. If you need to reset the INPUT FIELD to database values, use this macro:
sub ResetInputField
set fld = ActiveDocument.Fields("FieldName")
fld.ResetInputFieldValues 0
end sub
You can use trigger and reset the varible on Reload..........
Selva
I have had mixed results with inputfields, one time it appeared that values that were captured against one row were assigned to a different row when the data was reloaded with slightly different records. There may have been a specific reason why it behaved odd in this case - but the upshot is that I don't trust them too much.
If any data capture is required I tend to push this out to Excel spreadsheets, or Google Spreadsheet.
Cheers,
Steve
Hi,
Kindly try this solution.
Document properties - Triggers - OnPostReload - Add Run Macro - Edit Module - enter the script below with ur field.
sub resetvalues
set f = ActiveDocument.Fields("Fieldname")
f.ResetInputFieldValues 0, x
end sub
After that, reload your document and the macro will run automatically after reload.
Hope this would solve!
Thanks and best regards,
Chanel