I have a field "X" that is required on both the list "inline add" and add page
Although the functionality is working perfectly on both pages regardless of the method below I have issues with the required field indicator (Red *)
I have tried the following:
- Visual Editor Field not required
- If Field A == "2"
- field X..addValidation("IsRequired");
- Red * does not display indicating to the user the field is now required
- Visual Editor Field is required
- If Field A !== "2"
- field X..removeValidation("IsRequired");
- Red * does not remove indicating to the user the field is no longer required
I need to be able to Add or Remove the Red * indicating the field is/is not required with addValidation and/or removeValidation so users are not confused.
Any help is greatly appreciated