Fabian Unruh
Posts: 0
Joined: Thu Aug 01, 2013 12:15 pm

Show Toggle based on Queryresult

I would like to show a toggle in my app.

the toggle should only be visible when a field in my database is set to 'true'.

can i do this by adding a JavaScript after the i lnvoke the query-service? how would the JS be set up?

Thanks!!

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Show Toggle based on Queryresult

You can add mapping from target response field to "visible" property of toggle component and add JS to mapping.
For example
codeif (value == "show") {
return true; // show toggle
} else {
return false; // hide toggle
}/code

Fabian Unruh
Posts: 0
Joined: Thu Aug 01, 2013 12:15 pm

Show Toggle based on Queryresult

cool, works! thank you

Return to “Issues”