Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
dear all,
I can achieve the following with two separate buttons and it is a fairly easy task
fieldA: select values x,y,z
fieldA: no selections
How can I indeed have just one button doing that? You click it, it selects x,y,x, you re-click on it and all selections for that field are cleared?
thank you!
See attached example
thanks for your effort!
but the variable is not there..
Write in your action condition (Select in field)
In the upper textbox the name of your field (for example: field)
in the second textbox:
=if(GetSelectedCount(field)=0, '(A|B|C)', '')
add an action to the button to set the state in a variable
then you select or clear depending on the variable
Like this?
Oops. Removed too much from the example. I've updated the example above.
almost perfect Alessandro
should rather be
in the second textbox:
=if(GetSelectedCount(field)=0, '(A|B|C)', '()')
with the double brackets in the last parameter of the if function
but huge thanks for pointing me in the right direction!!
thanks Gysbert, it works now!
but, it looks like magic to me, as I cannot understand how!
clicking on a button switches the variable value from 0 to -1
but where is it mapped that -1 corresponds to Jason and John?
There's an action assigned to the OnChange trigger of the variable. You can find it on the Triggers tab of the Document Properties window.