Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am currently working on a application where I would like to reset the value of input fields after each reload. At the minute I am setting the inputfield to the value I want at each reload, but it is holding the value it was prior to the reload.
Is there a setting to switch this off, so that it reset every reload? I have looked through the reference manual and there doesn't seem to be anything indicating this is the correct functionality. I am using 10SR4
Thanks
Paul
you can use on post reload document trigger to clean the variable each time your document is reloaded
Hello,
Change your field names according to below code and run this macro code OnPostReload trigger.
sub resetinput
dim x(1)
x(0) = 0 ' element to reset
set fld = ActiveDocument.Fields("Index_Pris_Simulering")
fld.ResetInputFieldValues 0, x ' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value
end sub
Hope it helps you.
Cheers!
Jagan