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

Forum Posts

Resolved! How to render the iframe on the same page with ui action?

I have UI action list banner button on the table requested items [sc_req_items], so that if user want to see his onboarding requests (table [u_onboarding_request], he will click button and the iframe [SelfServicePortal - Onboarding Requests Frame] fo...

hyperjam by Giga Contributor
  • 3126 Views
  • 2 replies
  • 0 helpfuls

Resolved! Fetching logged in user company, Fetching logged in user company

Hi,I have a requirement to use the logged in user's company to validate some other fields. Now as far as I know,fetching the company name directly using User object is not possible. However we can get the company sys_id by using gs.getUser().getCompa...

a2gupta by Giga Contributor
  • 6071 Views
  • 6 replies
  • 2 helpfuls

Resolved! How to set viewable columns in a reference field on a form

On the incident form, when clicking in the Caller field to search/choose a user, you are given a list of the users' full name and email address.On other forms, when clicking in the Opened by field, which references back to User table, you are also gi...

Eric K3 by Kilo Guru
  • 5639 Views
  • 3 replies
  • 4 helpfuls

Client Script - getValue of field not on form

Trying to use the value of a field in a Client Script, but the field is not on the form (nor do I want it to be).I'm used to using something like:var active = g_form.getValue('active');It works if the field is on the form (RITM in this case) but it d...

jsummers by Kilo Contributor
  • 5689 Views
  • 4 replies
  • 5 helpfuls

javascript addQuery

Need some guidance on how to write a query in a client script.I want to query a reference table for a specific record and then pull other attributes from that record along and update the current record.Hope it makes sense.ThanksPhillip

phillipf1 by Kilo Contributor
  • 3060 Views
  • 9 replies
  • 0 helpfuls

How i can override view rule?

Hello,i have problem with my new module.I try to open lists with a new view. I use "sysparm_view" in URL address. It's working good in incident list but not working in change request list, because have view rules. How i can override view rule via url...

'Undefined' Exception with RESTMessageV2 called from Script

I have two outbound REST messages called from a scheduled script execution job using a MID server in Fuji.The 'Ok' response from first outbound REST call leads to the   second REST Message request.When tested in the individual REST message I could ge...

tantony by Mega Guru
  • 4635 Views
  • 11 replies
  • 0 helpfuls

Resolved! record producer script using Text (labels) instead of values

Hello ServiceNow community,I have a record producer that is set up with three radio buttons. As an example, one of them has Text (label) of "Supply Chain" and a value of "supply_chain". In my script I have these writing out to the work notes via the ...

will_smith by Mega Guru
  • 2029 Views
  • 3 replies
  • 0 helpfuls