Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Conditional required fields not working

Avatar

Avatar
Boost 1
Level 1
Ivica1987
Level 1

Like

1 like

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Ivica1987
Level 1

Like

1 like

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Ivica1987
Level 1

22-12-2015

Hello

I have a problem with conditionally required fields. It works only partially. I will explain the situation:

I have a dropdown field with values from 0 to 9 and there are other fields: date fields and several text fields. The other fields become required if the selected values from the dropdown are either 2 or 6.

The problem is when I go from the value 6 or 2 to some other value then 2 and 6 in the dropdown. In other words, the other fields don't become optional after they were required. I was using the change event for the dropdown with java script as script language.

Here is a more simpler example with a option field which I also tried:

adobe1.PNG

after that I click option 1:

adobe2.PNG

and it's still required, although it shouldn't be. This time I was using the click event.

I used the script from this thread: Conditional Required Fields

I hope someone can help me.

Thanks and best regards

View Entire Topic

Avatar

Avatar
Boost 1
Level 1
Ivica1987
Level 1

Like

1 like

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Ivica1987
Level 1

Like

1 like

Total Posts

27 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Ivica1987
Level 1

07-01-2016

Hello

Sorry for reviving this thread but I need some help.

I know how to make conditional required field if one field has some specific value but how to make the same with 2 fields. Example:

if (field1.rawValue == 1 && field2 == 2) {

date1.mandatory = "error";

dropdown.mandatory = "error";

}

else {

date1.mandatory = "disabled";

dropdown.mandatory = "disabled";

}

I tried it with this formula but it's not working. The fields are still optional.