Welcome Guest, Not a member yet? Register   Sign In
Re-populating select from db and validate it?
#9

[eluser]felyx[/eluser]
When someone loads the editing page for the first time I want to populate the form with data from the database. But at the select menu its a bit hard to do that, at the set_value function you can just set the default value parameter but you don't have that at the set_select() function, you can only tell the function if an option is the default or not.

About the validation class, as you can see I am using the set_select() function which is mentioned in the validation class reference, that's what I meant.


Messages In This Thread
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 08:16 AM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 08:52 AM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 12:49 PM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 01:55 PM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 02:08 PM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 02:14 PM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 04:29 PM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 07:16 PM
Re-populating select from db and validate it? - by El Forum - 02-01-2009, 07:31 PM
Re-populating select from db and validate it? - by El Forum - 02-03-2009, 08:35 AM
Re-populating select from db and validate it? - by El Forum - 02-03-2009, 08:39 AM
Re-populating select from db and validate it? - by El Forum - 02-09-2009, 12:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB