Welcome Guest, Not a member yet? Register   Sign In
[Closed] set_checkbox dosn't work with Form Helper
#1

[eluser]adamp1[/eluser]
Is it just me or do nearly all the following not work with the form helper functions.

set_checkbox
set_select
set_radio

None of these can easily be used with the form_dropdown, form_checkbox or form_radio functions since they return a string. The only way to get them to work is by using the 4th parameter and passing in additional data. Since seems a bit odd to me. Why have to parts of the framework which don't work together unless you use a not very pretty work around.

For example, setting a checkbox value.

This won't work since set_checkbox returns a string rather than a TRUE false VALUE.
Code:
print form_checkbox('my_checkbox','1', set_checkbox('my_checkbox', '1', TRUE));


Messages In This Thread
[Closed] set_checkbox dosn't work with Form Helper - by El Forum - 02-21-2010, 05:27 AM
[Closed] set_checkbox dosn't work with Form Helper - by El Forum - 02-21-2010, 02:59 PM
[Closed] set_checkbox dosn't work with Form Helper - by El Forum - 02-21-2010, 04:16 PM
[Closed] set_checkbox dosn't work with Form Helper - by El Forum - 02-21-2010, 10:20 PM
[Closed] set_checkbox dosn't work with Form Helper - by El Forum - 02-22-2010, 04:07 AM
[Closed] set_checkbox dosn't work with Form Helper - by El Forum - 09-12-2012, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB