⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


ocrama

Member Since 01 Oct 2013
Offline Last Active Oct 03 2013 05:55 PM
-----

Topics I've Started

password required in add form but not required in edit form

03 October 2013 - 01:30 PM

hi all,

 

i have the password field that is required in add form but should not be required in edit form.

 

For the edit form i have 

$crud->callback_edit_field('password',array($this,'_set_password_input_to_empty'));

that set password form empty.

When i submit the form the library shows me a message "Password field required".

How can i sibmit the form whit password field empty?

 

thanks.


how to show error messages

03 October 2013 - 01:18 PM

hi all,

i have a table users. how can i show an error message "username exist" when i'm trying to add a new user whit existing username?

 

 

thanks