Populate selected user name once attestation checkbox is checked

Renu9
Tera Contributor

Hi All,

I am having a requirement in one catalog item with 1 checkbox variable - Attestation. Once this is checked, next to this variable , I need to display the name of the person which is available in Requested for.

Label should not appear, only name should be visible . Is this possible?

6 REPLIES 6

Hi @SAI VENKATESH 

I tried the above code, but in form level once the RITM is created, the below error is appearing.

And also, the label is not hidden on form level. Please guide

onChange script error: TypeError: Cannot read properties of undefined (reading 'id')

 

Renu9_0-1720437914952.png

 

Trupti94
Tera Guru

Hi @Renu9 ,

 

you can set default value gs.getUserID() to populate loggedin user and show that variable only if the checkbox is checked