87
Views
5
Comments
Solved
Set Field Required if


Hey, I want to make the "Reason for cancellation" field mandatory when the Status field is set to "cancelled", the Status field has been configured as a dropdown with "approved" "cancelled". How can I best do this, are there any tutorials or can someone explain it to me step by step, thanks in advance.

 

2021-12-07 07-28-47
Arnold Ayaoan Jr
Solution

Put a condition on the mandatory property of the text like this:

UserImage.jpg
Aleyna Sahin

It worked Thank You

2021-08-04 12-19-54
Mayank Dharmpurikar
Solution

Hi Aleyna,

Mandatory Property is a type of expression that can be set to any valid expression.

Set something similar to this in your case based on your variable.

SelectedStatusId = Entities.Status.Canceled




UserImage.jpg
Aleyna Sahin

It worked Thank You

2021-12-07 07-28-47
Arnold Ayaoan Jr
Solution

Put a condition on the mandatory property of the text like this:

UserImage.jpg
Aleyna Sahin

It worked Thank You

2021-08-04 12-19-54
Mayank Dharmpurikar
Solution

Hi Aleyna,

Mandatory Property is a type of expression that can be set to any valid expression.

Set something similar to this in your case based on your variable.

SelectedStatusId = Entities.Status.Canceled




UserImage.jpg
Aleyna Sahin

It worked Thank You

2021-12-07 07-28-47
Arnold Ayaoan Jr

In addition to setting the Mandatory property of the input, you also need to check in your server action.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.