This topic is locked
[SOLVED]

 Conditional Display of Fields

2/13/2011 7:20:03 PM
PHPRunner General questions
R
rkiss author

Hi,
Does anyone know how to display fields (view/add/edit) if certain condition is met.
For example:
I have a db table called clients. I have a field called "is_new". If this field is checked, I would like to display additional fields from the client table, if it is not not checked, it should hide some fields.
Your help is much appreciated.
Thank you,
Roman

Sergey Kornilov admin 2/14/2011

Roman,
here is an example of how this can be done:

http://xlinesoft.com/phprunner/docs/hide_controls_on_add_edit_pages.htm

R
rkiss author 2/22/2011

Hi Sergey,
Any suggestion how would the following scenario be accomplished:?
If a user selects a value from the drop-down menu, some specific fields will become read only.
Thank you,
Regards,
Roman

R
rkiss author 2/22/2011

nevermind..I got it working with the Javascript OnLoad script