I would like to know if there is a way to change the user entered-required property of an object dynamically. i want to say something like:
if(radioButton1 == "1")
{
objectPropertyRequired = "Required";
}//end if
Any help is greatly appreciated.
Justin
Solved! Go to Solution.
Views
Replies
Total Likes
Your code is almost correct; Just add .rawValue after radioButton1
Your code should look like:
if(radioButton1.rawValue == "1")
{
objectRef.mandatory = "error";
}//end if
Nith
Views
Replies
Total Likes
Justin,
The attached uses a radio button group to toggle a field from/to required.
Steve
Your code is almost correct; Just add .rawValue after radioButton1
Your code should look like:
if(radioButton1.rawValue == "1")
{
objectRef.mandatory = "error";
}//end if
Nith
Views
Replies
Total Likes
Thank you everyone for your input I really appreciate it!!!!! Here is what I ended up using:
<event activity="click" name="event__click">
<script contentType="application/x-javascript">
if (RadioLocation.rawValue == "1") {
if (DropDownList2.isNull) {
DropDownList2.mandatory = "error";
}
}
if (RadioLocation.rawValue == "1") {
if (TextField23.isNull) {
TextField23.mandatory = "error";
}
}
</script>
</event>
Again Thank you for everyone who submitted feedback and examples I really really appreciate it!!!
Justin
Views
Replies
Total Likes
Views
Likes
Replies