Forums

Switch

webcrea 19 Jun, 2017
Hi,

I would want to show a button in function of value of a data query :
- I create the query (read data) and the result return an id
- I create a switch where data provider is the read_data

And I would want if the return value is > 0 (id exists) return true else return false

Do you have an idea?

Regards
Max_admin 20 Jun, 2017
Answer
Hi Christophe,

Assuming the read data is named "read_data1", you can use this in the Switch settings:

Data provider: {var.empty:read_data1}
Values:
true:No results found
false:We found something


Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.