Server Side Scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2013 04:48 AM
Hi All,
Is there a way to achieve server side script validation in Service Now?
I am building an UI page that need to send data to the email server from the UI page itself when i click the submit button.
I know this is a server side processing, which can generally be achieved only using server side scripts like php, Ajax, ASP.net etc..
I had a look at the Glide Ajax, but I am not sure whether I can achieve server side validation and email processing through it.
Please let me know if some one has either tried it earlier or looking for something similar to this..
Thanks
Gopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2013 10:50 AM
Yes, you can call server side functions from the client side using ajax, and the server side functions can trigger events which in turn can be used to trigger email notifications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2013 12:39 AM
Thanks for the reply. I appreciate your help.
I tried using some ajax functions along with jquery, for ex.a script to send email notifications to the SMTP server in the client script window of the Service Now UI page. But this doesn't seems to work for me. Syntax errors seems to be very ambiguous.
I find a easier way to do email notifications using php. is there a way I can make the php script work in a UI page in service Now?
Any kind of related information will be helpful.
Thanks
Gopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2013 01:06 AM
can you please show how you did it , I have the same scenario.
Please share it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2015 07:08 AM
What about running the validation on the server-side without calling from the client script?
Client scripts can be disabled in the browser. This is why separate server-side validation should occur before the data is accepted.
I have a client script working to call an ajax function, so I have it set up to call from the client. However, what if the client code is disabled?
I learned in school that the best technique to validate forms when building web applications is to first validate on the client and then on the server. I have done this many times with javascript (client side) and PHP (server side). The PHP processes the validation on the server when it receives the user entry.
How to achieve this in ServiceNow platform? I was thinking of using a Script Include called by a Business Rule.
Are there any simpler ways to achieve this?
Does anyone have examples?