Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
paulm
Contributor III
Contributor III

Input Fields keeping values

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

2 Replies
Not applicable

you can use on post reload document trigger to clean the variable each time your document is reloaded

jagannalla
Partner - Specialist III
Partner - Specialist III

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