I want to set something as visible. What do I return so it is set as visible.
For example when mapping I can add JS inside my js I would do.
if(value == "blah")
{
return true;
}
I want to set something as visible. What do I return so it is set as visible.
For example when mapping I can add JS inside my js I would do.
if(value == "blah")
{
return true;
}
That's the concept for sure ... Depending on the default value of the control ... Be sure to return false if your blah condition evaluates to the negative ...
I am using console.log and no matter what I do the values are always undefined for
value and element
The thing is I know it is working because it works fine.
I should add I am trying to set the visibility on a json REST return array.
value[n].value == "blah" is what I am trying to use.
Hi Ryein,
So you want to set visibility of single component in accordance to the some element in the response?
If so it's better to use new event handler for "success" event with action "Run javascript".
And inside this JS you can use "data" variable as response array.
For example:
pre
if(data[n] && data[n] == "blah")
Apperyio("componentToManageName").hide()
else
Apperyio("componentToManageName").show();
/pre
Regards.