Look Up Wizard List Display Values |
9/29/2025 23:31:47 | |
PHPRunner General questions | ||
J
jacktonghk authorDevClub member
I have an option field which represents 'Yes' and 'No', the actual value stored in the database is '0' and '1'. Is is possible to use list value to display 'YES', 'No' in the selecttion or View instead of '0', '1'? Thanks. |
||
![]() |
ChatGPT 9/29/2025 |
Yes, in PHPRunner, you can easily map the stored values ('0' and '1') to display more user-friendly options like 'Yes' and 'No'. Here’s how you can do it:
By following these steps, you can map the stored values to more user-friendly text in PHPRunner, improving the user experience for anyone interacting with your application. |
|
J
|
jacktonghk authorDevClub member 9/30/2025 |
There is no way for me to enter value and display separately
|
|
G
|
Grdimitris 9/30/2025 |
Go to fields click properties of option field and click the view tab. Choose Custom and write this if ($value==1) $value='Yes'; else $value='No'; |
|
G
|
Grdimitris 9/30/2025 |
If you want and in add or edit pages then create a table named yesno with 2 fields |
|
J
|
jacktonghk authorDevClub member 10/2/2025 |
I used to create a database table to handle it, just curious if this can also be acheived with llist value. It is because sometimes I only have one to two fields require yes/no option, I don't want to create a table. |
|
G
|
Grdimitris 10/2/2025 |
Is the best way. PHPRunnner already has the utility. Otherwise you have το create javascript functions every time you want yes/no. |
|