Created
July 1, 2025 10:42
-
-
Save vikrantyadav11/000b42d1f49a656ba894c748892abf86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const uacField = getFieldById("customfield_10322"); | |
| uacField.setRequired(true); | |
| const mobileField = getFieldById("customfield_10323"); | |
| mobileField.setVisible(false); | |
| mobileField.setRequired(false); | |
| const productareaField = getFieldById("customfield_10536"); | |
| productareaField.setVisible(false); | |
| // Get UAC field value | |
| const uacFieldValue = uacField.getValue()?.value; | |
| if (uacFieldValue == "Yes") { | |
| mobileField.setVisible(true); | |
| mobileField.setRequired(true); | |
| //show option No only in Mobile Field | |
| mobileField.setOptionsVisibility(["10537"], true) | |
| } else { | |
| mobileField.setVisible(false); | |
| mobileField.setRequired(false); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment