Hi All,
I have two custom fields called "cf1 and cf2" . The ask is make cf2 read only and it should update depending on cf1 single select options. Please help me to address this situation. I'm a new bee to the scripting part.
Hi @kk4065896
It needs a plugin to achieve the requirement - Scriptrunner!!
Here's an example of how to do that
def fruits = getFieldById(getFieldChanged()).getValue().toString()
getFieldById("customfield_10403").setFormValue(fruits);
getFieldById("customfield_10403").setReadOnly(true)
Let me know if you have any queries
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.