We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! how to place a variable inside a variable set

Hi All,I need to place an extra variable inside a variable set applicable ONLY for 1 catalog item. For other catalog items that uses the same variable set, this extra variable should not be displayed.I tried keeping the order of the extra variable 'd...

find_real_file.png
sohan_snow by Tera Contributor
  • 4292 Views
  • 12 replies
  • 6 helpfuls

Resolved! Jelly Script to check roles

Hi ,I am trying to check the roles of the logged in user to display a piece of HTML .<j2:if test="$[gs.hasRole('R1') || gs.hasRole('R2') || gs.hasRole('R3')]">                                                                                 <a data-t...

maryc by Tera Contributor
  • 3017 Views
  • 3 replies
  • 2 helpfuls

JSON object in for loop

Hi All,I have a json object inside which der is an array called as items which is used to store the RITM of a request.But suppose i have 4 RITM for a request how can i dynamically create 4 elements inside the array with these field values.{          ...

Abinash by Kilo Contributor
  • 5356 Views
  • 8 replies
  • 1 helpfuls

Transform map script ignore particular field update

Hi All,We have LDAP Setup and a transform map configured to it. We have a 'onBefore' transform script.if(action == "update") {if(target.u_code == "100" || target.u_code == "1000") {ignore = true;       }}Because of the above script, the user records...

sachin312 by Tera Expert
  • 10788 Views
  • 3 replies
  • 1 helpfuls

Change style multi line text

Hi all,i have a multi line text variable in a catalog item on service portal.How can i change the style of this variable on service portal? For example, i would want to change background color, color text, bold, ecc.The name of the variable is var_ss...

Resolved! gliderecord functions within a scoped application

I am building a forms application wherein there is one application for the base forms table, and then additional applications to handle each individual type of form.All forms extend the base table.I am trying to create a UI action which will allow us...

MID Server Script includes calling issue

While doing the external database integration, I can send attachment <5mb, but when I try to send >5mb file via mid server the base64 conversion not happened. Am trying to call MID server script includes which consists script of base64 conversion fro...

siramdasu by Tera Contributor
  • 2010 Views
  • 7 replies
  • 0 helpfuls

Resolved! Set a choice list value from record producer script.

Hi All,I've created a record producer for some incidents.   All the incidents created via this record producer will be Sev 2 so we are not asking them a severity question.I have been trying to set the value of the questions in the record producer scr...

find_real_file.png find_real_file.png find_real_file.png
Sam Ogden by Tera Guru
  • 6660 Views
  • 25 replies
  • 3 helpfuls

Resolved! Record Producer Multiple Checkbox label mandatory

Hi All,I have the following label and checkboxes on a record producer:These appear based on the answer of another variable.   I need the label to be mandatory when these variables appear, but if any of the checkboxes are ticked for it to no longer be...

find_real_file.png
Sam Ogden by Tera Guru
  • 3697 Views
  • 14 replies
  • 3 helpfuls

Calculate age based on date field

I am working on a custom app and would like to be able to calculate the age of something based on a date field on a form. I've found a few community posts that have some scripts that will probably get me most of the way there. Below is one example th...

Marcel H_ by Tera Guru
  • 2970 Views
  • 2 replies
  • 1 helpfuls