Hello Community, @Hana Kučerová
I am trying to set a behavior by getting a value of custom field (which is hidden and has a preset value, in customer form), but sadly unable to achieve the same.
I have a custom field - location which is hidden and the value is preset to say 'ABC' for a request type.
I want to achieve that for all the request type which have location set to 'ABC', certain fields should be visible in customer request form, else if location is not ABC then dont show up in request form.
my code is -
def customfield = getFieldbyID("customfield_12")
def cfval = customfield.getvalue() {also tried cfval = customfield.getvalue() as string}
if (cfval == ABC) {
desciption.setHidden(false)
.
.
.
}
else true
Can you suggest if this is the correct approach.
Thanks!