Need to show field only if the field is not empty on portal widget.

Jaydee1
Tera Guru

Hi,

I need to show the field only if it has value, in a portal widget. If its empty it should not show up in the widget on portal. How can we achieve it?

Thanks,

Jaydee

1 ACCEPTED SOLUTION

@Jaydee1 

you must be getting the field value using gliderecord or something

just check if it's empty or not

gs.fieldValue == ''

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Jaydee1 

is this field shown as part of form shown in portal?

how it is rendered?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Its a widget which is configured as standard ticket configuration tab.

@Jaydee1 

I doubt there is any configuration for that.

you might have to replicate the OOB widget by cloning it and then add your custom logic there and add this new widget in that page

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

I need to know the custom logic only the widget I have created is customized, on that how can I implement this logic?