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.

Record Producer and HTML variables

midsummerbreeze
Giga Contributor

Looking for guidance on how to accomplish a specific task using a record producer.

There is an HTML variable that is available on a record producer that can be used for advanced formatting of that variable. I would like to add additional formatting to a text area within a record producer so that the character count is displayed when the user types in that field since I want to impose a character limit. I can do this in a regular HTML form but I am not having much success implementing that in an HTML record producer variable. Should I be using a different record producer variable to get this to work? I've tried HTML and Multi Line text but there is no option to enter javascript code in a Multi Line text variable.

Solo

1 REPLY 1

Adam Lankford
Tera Guru

Solo,



How are customers accessing this record producer?   Do you have the Service Portal enabled or are you using the default Service Catalog/CMS?



Depending on your answer, you may need to create a widget (portal) or an UI page (default catalog / CMS) to accomplish this type of functionality.



If you are just wanting to validate the character count of a field, it would be much easier to write a client script.   I don't know that a client script would be able to display how many characters were used, but it may be worth researching.