This topic is locked
[SOLVED]

 hide option on radio button

11/29/2011 1:13:46 PM
PHPRunner General questions
S
stiven author

Hello,
I have a field that is a radio button, there are 4 options, 1) Yes 2) No 3) Pending 4) Done. I know that you can hide a field with the javascript API but what im trying to do is if the user selects Yes on the radio button then the option No and Pending will hide and then if the user selects Pending, then the option No and Done will hide. is there a way to do this? or if it can not be hidden then maybe is there a way to disable the option? like if user selects Yes then disable No and Pending would be disabled??
Thanks so much

C
cgphp 11/29/2011

Javascript is best way to do this.

S
stiven author 11/29/2011



Javascript is best way to do this.


do i have to write the code from scratch or is there a predefined code or event in phprunner? thanks

C
cgphp 11/29/2011

You have to write the code from scratch. Check this article for inspiration: http://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm

S
stiven author 11/29/2011

thank you! i got it to work now..



You have to write the code from scratch. Check this article for inspiration: http://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm