search cancel

Hide Service Catalog text field if it is it empty

book

Article ID: 252710

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

How can I hide/not display the empty text fields?

Environment

Product: CA Service Catalog

Release : 17.3

Resolution

You can add some conditional statements in the on_Load() function in js script.

For example, for text field with id "textid", this statement will hide it if it is empty/blank

if(ca_fdGetTextFieldValue(formid, "textid")=="")  ca_fdHideField(formid, "textid");