Hello all,
In my form I have 4 checkboxes. If you select the checkbox, it is required to give some additional information. But theres only one textfield for 4 checkboxes.
Is it possible to create a code that the textfield validate if there is an imput in the checkboxes?
Greetings,
Timo
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Timo,
Put this following script in the change event of every checkboxes.
if (CheckBox1.rawValue == 1 || CheckBox2.rawValue == 1 || CheckBox3.rawValue == 1 || CheckBox4.rawValue == 1)
{
TextField1.mandatory = "error";
}
else
{
TextField.madatory = "disabled";
}
Thanks,
Bibhu.
Views
Replies
Total Likes
Hi Timo,
I guess it's possible. But what exactly do you want to do ?
Thanks,
Bibhu.
Views
Replies
Total Likes
I attached an image. Her you see the "form"
You see field 1. This textfield must check if one or more of the checkboxes are on/filled. If one or more of the checkboxes are on/filled the textfield is required.
Greetings,
Timo
Views
Replies
Total Likes
Hi Timo,
Put this following script in the change event of every checkboxes.
if (CheckBox1.rawValue == 1 || CheckBox2.rawValue == 1 || CheckBox3.rawValue == 1 || CheckBox4.rawValue == 1)
{
TextField1.mandatory = "error";
}
else
{
TextField.madatory = "disabled";
}
Thanks,
Bibhu.
Views
Replies
Total Likes
Hi Bibhu,
Thanks, this script works.
greetings,
Timo
Views
Replies
Total Likes