This topic is locked
[SOLVED]

 Saving and retrieving multiple horizontal radio button

9/20/2010 4:03:44 PM
PHPRunner General questions
R
rod author

I am using multiple radio button list of values on my add and edit pages. Using horizontal layout for "Yes", "No" and "Maybe". No mater which radio button I select, it always saves a "ZERO" to the field value. I tried both Integer and VarChar fields. What is the proper way of using this feature?
Also, how do I use this in the View and Print pages?
Ideally, I would like to have check boxes in place of the radio buttons, but they do not provide the ORing function for a horizontal layout.

Admin 9/20/2010

If you use a list of hardcoded values in Radio-button like ("yes", "no" etc) make sure you use a text field (varchar) to save your choice. If you have changed field type to varchar from int, make sure synchronized project and database.
On View/Print pages you can either display database value "as is" or use 'View as' type 'Custom'.
If it still doesn't work as expected post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

R
rod author 9/20/2010



If you use a list of hardcoded values in Radio-button like ("yes", "no" etc) make sure you use a text field (varchar) to save your choice. If you have changed field type to varchar from int, make sure synchronized project and database.
On View/Print pages you can either display database value "as is" or use 'View as' type 'Custom'.
If it still doesn't work as expected post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


Thanks,
I had realized that all of the fields needed to be varchar just after posting the question, and just now found that I needed to remove the default value; that was keeping the Edit page from working. Removing the default value, and setting the fields to varchar got all pages working as expected.