Welcome Guest, Not a member yet? Register   Sign In
custom validation dinamic
#6

I'm telling you, use $data for your rule.
require_if[radio1]
In $data, you will have the rest of the buttons: radio2...radio20
Check their availability at radio1. What is the problem?
PHP Code:
if ($value !== '' && in_array($data'radio2',...'radio20')) { return true; } 
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply


Messages In This Thread
custom validation dinamic - by pippuccio76 - 05-03-2024, 10:04 AM
RE: custom validation dinamic - by ozornick - 05-03-2024, 10:22 AM
RE: custom validation dinamic - by pippuccio76 - 05-03-2024, 10:36 AM
RE: custom validation dinamic - by ozornick - 05-04-2024, 12:49 AM
RE: custom validation dinamic - by pippuccio76 - 05-06-2024, 01:16 AM
RE: custom validation dinamic - by ozornick - 05-06-2024, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB