I have a required field called "Release Type" and when it is set to "Hardware" I want to have the SKU(s) field required. When it is set to anything else, I want the SKU(s) field optional and read only or if possible hidden. Here is the script I have so far but it isn't working at all. I also want the asterisk to show against skus as well if possible.
Hi @Joe Harmon
You use getFieldById but you provided cf name. Use getFieldByName or provide ID of the field.
def skusField = getFieldById("SKU(s)")
Also, use formField.setHelpText() to see the values in UI for testing.
Ex; releaseTypeField.setHelpText(releaseTypeStatus)
For further info:
That's what it was. I saw an example from someone and that is what they used and had the name on it. I was confused by that as I figured it had to the be the customfieldID_xxxx. Oh well, thanks for helping me with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to hear that, you are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to add a second field with the same context as the first and it only worked on the first. You ever heard of that before?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.