- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 03:49 AM
I am looking to create forms when I can easily click using the new UI interface down the left hand side, so for example when we receive a password reset the Service Desk can just click a button on the left and it will open a new incident with all the fields pre-filled with just the name outstanding.
This will save us a lot of time when raising first time fix calls that take 10 seconds to fix but a minute or so to raise the incident.
This is currently our blank incident field:
And if possible I would like to have a form which I can just add to the new UI so one click will open a new incident with these fields filled out (in this example for out most popular request, Password reset):
And if possible to also fill out the closure information like this:
Thank you in advance for any comments.
Garry
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 03:53 AM
Hi Garry,
You can write the client script onload with hardcoded values on the form.
The other option is to have the template and apply it on form load.
Please let me know if you have any questions.
Kindly mark this as answered if this answers your question.
Thanks,
Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 04:15 AM
Hi Garry,
There are many ways to do this:-
1. Using templates : » Advanced Templates
2. Using default value in dictionary: http://wiki.servicenow.com/index.php?title=Creating_New_Fields#Specifying_a_Default_Value
3. Using a Display business rule
Eg: current.active=false;
current.short_description="Test Record";
4. Using an onLoad client script
Eg: g_form.setValue('active',false);
g_form.setValue('short_description','Test Record');
I would not recommend the 4th method as your performance will be impacted.
Thanks & Regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 04:27 AM
Hi All, thank you very much for the replies,
I have downloaded this update set:http://www.servicenowguru.com/downloads/?did=8
However when i click apply templates nothing happens. After further reading it seems I need to flush the cache of the instance. I am currently working on the DEV site so it will not be an issue to flush this now, then if it works schedule it to be done overnight on the live instance, however I am not 100% sure how to flush the cache propery. Any suggestions?
Thanks again in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 04:31 AM
Hi,
Here you go
instancename.service-now.com/cache.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 05:00 AM
Thanks have got it working. Only issue I have now is when I have the subcategory chosen on the template it removes the short description template.. If subcategory is not selected the short description shows... no idea how that works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2014 05:02 AM
Hi,
Please check the short description field in the template you created
Also check if there is any client script on subcategory field on your form.
Thanks,
Pradeep Sharma