Welcome Guest, Not a member yet? Register   Sign In
set_value and validation rules passing
#1

[eluser]ST-Mike[/eluser]
Hi

I'm using the Form Validation class and set_value to re-populate form data upon submission. However what I really want is for the form data to only populate when an error is caused from the form validation... if the form is submitted just fine then I don't want the form to populate again.

I was just wondering if this is possible out of the box with CI (i.e. without me creating my own helper function similar to set_value).

For clarification, in this case, the form is for sending a message.. you send the message, the same view reloads with a green message assuming it's been sent ok.. I don't want those form items populated again in this case, only if there has been an error brought up by the validation system.

Thanks


Messages In This Thread
set_value and validation rules passing - by El Forum - 02-21-2010, 09:18 PM
set_value and validation rules passing - by El Forum - 02-22-2010, 03:25 AM
set_value and validation rules passing - by El Forum - 02-22-2010, 11:20 AM
set_value and validation rules passing - by El Forum - 03-04-2010, 06:03 PM
set_value and validation rules passing - by El Forum - 03-05-2010, 04:53 AM
set_value and validation rules passing - by El Forum - 03-08-2010, 08:45 AM
set_value and validation rules passing - by El Forum - 11-01-2010, 01:37 PM
set_value and validation rules passing - by El Forum - 02-27-2012, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB