Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To clear a field when a variable value changes

Hi i have two calender objects for Start date and End date, each controlled by variables vStartdate and vEnddate.

When i select any of these and change the dates i want to clear all the previous selections on my date field  which is cdate and cweek.

I tried using trigger to 'Clear Field'= cweek  in the 'On Change' and 'On Input' triggers of the variables.

Clear Field is not working at all.... Why ???  Pls help

7 Replies
MayilVahanan

Hi

I think, you used "=" symbol in clear field. If so, remove that "=" sign

Trigger-> Onchange -> Clear Field -> cweek

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Can you share your qvw?

Not applicable
Author

No... i tried all combinations....

when i put clear all instead of clear field, its working....

But i need clear field itself

MK_QSL
MVP
MVP

Try to use clear other field action first.... i.e. if you have more than one action in OnInput or OnChange, prompt the Clear Other fields action first.

MayilVahanan

Hi

can you able to provide the sample post?

or

set hierarchy in the action.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
jvishnuram
Partner - Creator III
Partner - Creator III

Hi Arjun,

Find the attachment hope it will helps you., if you have calendar object to select the date then you can follow this.,

This is just a suggestion.

Not applicable
Author

Hi Vishnu, i am using the Personal edition. Cant open the file.

I would greatly appreciate if you could write the code here ..