Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

checking variable value to hide a graph

Hi All,

I have a question not sure how to explain but just trying to make you understand.

There is a variable declared in my file, whose value will be set dynamically based on selection of some other field.

Here the problem is I'm using this dynamically set variable to hide and display a graph. Since variable value is set dynamically based on selection and it wont have any value at the beginning my condition to hide/display object is not working.

Can some body please explain me how do I solve this problem??

Thanks in advance!!!

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Why dont you give default value to your variable.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
salto
Specialist II
Specialist II

The default value suggested above by Kaushik (which honestly is the answer I guess) could even be set depending on the values of the selections of the other fields when the document is opened.

Regards!

Clever_Anjos
Employee
Employee

Maybe your variable could use an IF condition and check if there´s something selected

If(isnull(GetFieldSelections('yourfield')), [default value], your normal condition)