Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to clear input fields with a button

Hi, I have a column of inputfields in a grid, and even after a reload, the values i modified are still present. I would like to create a button that will set all the values of that inputsum(field) to 0. Anyone have any insight on how this can be done?

1 Solution

Accepted Solutions
marcus_sommer

Maybe this is helpful:

sub ClearInputFields

dim fld1

set fld1 = ActiveDocument.Fields("YourInputField")

fld1.ResetInputFieldValues 0

end sub

Further possibilities you could find in APIGuide.qvw in your install-folder.

- Marcus

View solution in original post

6 Replies
aveeeeeee7en
Specialist III
Specialist III

Hi

You can do this with the help of Macro.

Check this out:

Re: InputSUM will change after reload?

Regards

Aviral Nag

marcus_sommer

Maybe this is helpful:

sub ClearInputFields

dim fld1

set fld1 = ActiveDocument.Fields("YourInputField")

fld1.ResetInputFieldValues 0

end sub

Further possibilities you could find in APIGuide.qvw in your install-folder.

- Marcus

sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi,

use this macro

 

sub ResetField()
Set oField = ActiveDocument.Fields("FieldName")

oField.ResetInputFieldValues 0

-Sathish

Not applicable
Author

Many thanks guys! Works perfectly!

vsabbise
Creator
Creator

May I know how do I achieve this in qlik Sense ? Thanks