Hi Team,
We have requirement that "When user selects the option "No input parcel or input file provided" from Feedback Term single selection field, it should display with prefilled text "Used when a ticket is received and no parcel, transaction tracker link, or attached input file is provided by the requestor." in the "Details" field (multi line field), and same for other values, etc. I have tried with the below script using script runner behaviors, but the value is not not displaying in the "Details" field. Could you please suggest me on this ?
def fterm = getFieldByName("Feedback Term")
def details = getFieldById("details")
def ftermvalue = fterm.getValue()
if (ftermvalue == "No input parcel or input file provided")
{
def defaultValue = """
Used when a ticket is received and no parcel, transaction tracker link, or attached input file is provided by the requestor.
""".replaceAll(/ /, '')
if (!underlyingIssue?.description)
{
details.setFormValue(defaultValue)
}
}