ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Tranform int in string

rafaelscouto 08 Mar, 2018
Good afternoon, how do I turn one value into another?

In my table, I get the status return, which is 0 for active or 1 for locked.

How do I show the name Active or Blocked instead of 0 or 1
Max_admin 15 Mar, 2018
Answer
Hi Rafael,

Call a switch function, the function values setup should be like this:
1:Active
0:Blocked
The "Data provider" should be set to the table field value: {var:table_name.row.field_name}

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

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com