Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Record Producer: Show Additional Fields on Button Click in Platform and CSM Portal

BokkalaS
Tera Contributor

Record Producer: Show Additional Fields on Button Click in Platform and CSM Portal

Hi Experts,

I have a requirement on a Record Producer where I need a control that looks like a button (or a field styled as a button).

Requirement:

  • Initially, a few variables should be hidden.
  • When the user clicks the button, those hidden variables should become visible.
  • This should work in both:
    • Native Platform view (Service Catalog / Record Producer)
    • CSM Portal / Service Portal
1 REPLY 1

Ankur Bawiskar
Tera Patron

@BokkalaS 

why not have a checkbox type variable to control visibility of the other variables?

If you want button then create variable of type Custom and link UI macro and Widget

-> for native you can create UI macro and have some onclick event (UI macro will work in Native)

-> for portal you can use widget and then have onclick event and then show/hide variables (Widget will work in portal)

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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