Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Link in Record Producer form

pramodkumar
Tera Expert

Hi All,

Is it possible to place a clickable link on record producer form, clicking on it should show few variables? 

 

 

Thanks!

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@pramodkumar 

not possible with any variable as when you change the variable onChange client script will trigger

Workaround

-> You can try to use Custom variable type and include widget in that and that widget will have links inside it

-> You can have event which triggers when link is clicked and then show/hide other variables in client controller using this syntax

AnkurBawiskar_0-1765517776455.png

 

$scope.page.g_form.setDisplay('variableName', false); // to hide


$scope.page.g_form.setDisplay('variableName', true); // to show

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader