I have two fields ‘Enabler Type’(User picker) field and ‘Create Default sub task?’(Radio button) field.
If ‘Enabler Type’ is filled then ‘Create Default sub task?’ field value should set to ‘Yes’ and should be able to edit the value as well. If Enabler Type field is not filled then ‘Create Default sub task?’ should set to ‘No’ and allow us to edit as well.
I have written a script to achieve this but Its getting set to the values but its not allowing us to edit the value. Could you please help me with the code which help me to set the value as well as allow the user to edit it.
def enablerfield = getFieldByName("Enabler Type") def defaultask = getFieldByName("Create default sub-tasks?") if(enablerfield.getFormValue()==null) { defaultask.setFormValue('No')&&defaultask.allowInlineEdit==true } else if(enablerfield.getFormValue()!=null) { defaultask.setFormValue('Yes')&&defaultask.allowInlineEdit==true }
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.