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: 
ferha_jafri
Partner - Creator III
Partner - Creator III

Clear /Unclear a field

Hello Everyone,

I want to implement a condition as when I click on an image of text object then a particular field value get selected from a field and when I click on it again then it get cleared. .

Thank you

Regards

Ferha Sharma

1 Solution

Accepted Solutions
PrashantSangle

Hi,

1st Create Vaiable say vShow assign value to 1

Then Create 2 Text Object

1st Text Object -> Property-> Action -> add Two Action ->

     1st Action is Select in Field -> insert Field Name and Value

     2nd Action is External -> Set Variable -> Set Varaible Value=2

then Go to Layout ->Conditional ->if(vShow=1,1,0)

2nd Text Object -> Property-> Action -> add Two Action ->

     1st Action is Clear Field -> insert Field Name

     2nd Action is External -> Set Variable -> Set Varaible Value=1

then Go to Layout ->Conditional ->if(vShow=2,1,0)

then place both text object at same location.

You will acheive what you are expected.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

6 Replies
PrashantSangle

Hi,

Use trigger from Text Object Property.

Like

Text Object Property -> Action->Action Type(Selection) -> Select In Field -> Enter Field Name -> Enter Value

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

Hi,

Find attachment for your reference.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sasikanth
Master
Master

HI,

PFA

Hope it will work

ferha_jafri
Partner - Creator III
Partner - Creator III
Author

I am not able to open the doc as I am using personal edition, could you pla mention the steps to select on one click and deselect on another click.

sasikanth
Master
Master

Create a variable in Varibale overview

1) vSet and assign a value '0'

2) Add two actions

    1) Set a variable : give variable name vSet and value is if(vSet='0','1','0')

    2) Select in Field : Give filed name and Field-value is if(vSet='1','Field-value-name','')

PrashantSangle

Hi,

1st Create Vaiable say vShow assign value to 1

Then Create 2 Text Object

1st Text Object -> Property-> Action -> add Two Action ->

     1st Action is Select in Field -> insert Field Name and Value

     2nd Action is External -> Set Variable -> Set Varaible Value=2

then Go to Layout ->Conditional ->if(vShow=1,1,0)

2nd Text Object -> Property-> Action -> add Two Action ->

     1st Action is Clear Field -> insert Field Name

     2nd Action is External -> Set Variable -> Set Varaible Value=1

then Go to Layout ->Conditional ->if(vShow=2,1,0)

then place both text object at same location.

You will acheive what you are expected.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂