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

Forum Posts

Resolved! Only one checkbox can be checked

Hi, I am a newbie and not too good in scripting. I am creating a Catalog item and there I have 2 check boxes, I want that only one can be selected at a time. I know this can be done if I create radio buttons but I have been specifically asked to crea...

prabhmeet by Giga Expert
  • 7994 Views
  • 12 replies
  • 6 helpfuls

Resolved! Compare Planned start date with current date time

On Change task, I want to check if Planned start date is in future.  If future, abort action  if past, continue   I tried the below code in Client script but doesn't validate.      var plannedStart = g_form.getValue('planned_start_date'); //get Date...

find_real_file.png
Nithin21 by Tera Expert
  • 2840 Views
  • 5 replies
  • 0 helpfuls

Resolved! how to pass uiaction value to ui page

hi team, pls find below code, from ui action i am passing 2 values to ui page dialog.setPreference("commentstext", requestfor); //Pass in comments for use in the dialogdialog.setPreference("modeldisplayname", modelname); //Pass in short description f...

Deepthi13 by Tera Expert
  • 6690 Views
  • 9 replies
  • 3 helpfuls

Resolved! getxmlwait() not working onSubmit

I am trying to use getXMLWait() to stop a catalog item form submission, but this method is not working.   The form still submits.   function onSubmit() {                   var emailGA = new GlideAjax('EmailAutoGeneration');       emailGA.addParam('...

Community Alums by Community Alums  
  • 4631 Views
  • 6 replies
  • 1 helpfuls

How to delete custom column using fix script?

Is there a way to script a column's deletion so that everything is performed as though the column was deleted using the GUI? The London release has introduced a "Parent Contract" field to the ast_contract which has resulted in our custom "Parent Cont...

Insert Additional Comments as a different user

Hi, Im trying to update an incident by adding additional comments, and the id of another user in the updated by field.  However, the updated by field keeps showing the 'integration account' id that we are using to call the API.   PUT <instance>.servi...

Jane14 by Tera Contributor
  • 1989 Views
  • 3 replies
  • 0 helpfuls

How to create Calendar using Scheduled Page

Hi all,I'm trying to create Calendar from Scheduled Page as described in documentation.I'm using link:show_schedule.do?sysparm_type=release_calendar&sysparm_include_view=monthly,weekly,daily,oldtimelinein module to show calendar.The calendar should s...

find_real_file.png

Resolved! GlideAjax.getXMLWait spam for g_form.addOption() ???

Hello, i know the following article about round trips of the serviceNow system https://community.servicenow.com/community?id=community_blog&sys_id=b23deae5dbd0dbc01dcaf3231f961992&view_source=searchResult but still i cannot figure out why the system ...

Marcor1 by Giga Contributor
  • 2150 Views
  • 6 replies
  • 1 helpfuls