Welcome Guest, Not a member yet? Register   Sign In
How validate this rules
#1

I have form, if checkbox in my form (print) is checked (has value 'yes') i need validate email, if not dont validate

My rules like that

'print' => [
'label' => ' ',
'rules' => 'permit_empty|in_list[yes]',
],

'email' => [
'label' => ' ',
'rules' => 'required_with[print]|max_length[30]|valid_email'
]

When i valudate without print i got error from valid_email
Reply


Messages In This Thread
How validate this rules - by motoroller - 12-26-2023, 01:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB