Welcome Guest, Not a member yet? Register   Sign In
set_select without form validation does not work
#1

[eluser]SPeed_FANat1c[/eluser]
Hello,

I just noticed that set_select only works when we set validation rule on that field and run form validation.

It is confusing, in documentation I don't see this documented:

Quote:If you use a <select> menu, this function permits you to display the menu item that was selected. The first parameter must contain the name of the select menu, the second parameter must contain the value of each item, and the third (optional) parameter lets you set an item as the default (use boolean TRUE/FALSE).

So I think this need to be pointed or redone that it would work without running form validation.

Don't know about CI 2.1.0 but I guess its the same, I tried only at 2.0.3
#2

[eluser]CroNiX[/eluser]
Yeah they should probably remove those since they are already covered in the validation library, which is appropriate.




Theme © iAndrew 2016 - Forum software by © MyBB