- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2016 12:07 AM
Once i enter data and select submit button on a form , list of all particular records should appear instead of blank form ?
thanks in avance !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2016 12:15 AM
Hi sarath
Either use this or that
answer = current.insert();
gs.include('ActionUtils');
var au = new ActionUtils();
au.postInsert(current);
Or
Using a UI Action to Redirect to a URL
As part of a UI action, you may want to redirect a user to a URL. For example, you might add links to a form or open a new record after it is created from a UI action.
To redirect a user to a URL from a UI action, use this syntax to define the redirect link:
action.setRedirectURL('http://www.mysite.com/mypage.htm');
To direct a user to a record, use this syntax, where new_record is the variable name for the GlideRecord:
action.setRedirectURL(new_record);
regards'
Kirtesh
Pls mark as correct/helpful/like
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2016 12:12 AM
Hi Sarath,
Normally the submit button will redirect to the last page in the stack. You can edit the submit button code and add Redirect URL. Check below for more information
http://wiki.servicenow.com/index.php?title=UI_Actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2016 12:15 AM
Hi sarath
Either use this or that
answer = current.insert();
gs.include('ActionUtils');
var au = new ActionUtils();
au.postInsert(current);
Or
Using a UI Action to Redirect to a URL
As part of a UI action, you may want to redirect a user to a URL. For example, you might add links to a form or open a new record after it is created from a UI action.
To redirect a user to a URL from a UI action, use this syntax to define the redirect link:
action.setRedirectURL('http://www.mysite.com/mypage.htm');
To direct a user to a record, use this syntax, where new_record is the variable name for the GlideRecord:
action.setRedirectURL(new_record);
regards'
Kirtesh
Pls mark as correct/helpful/like
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2016 05:47 AM
Thanks for the responses !
I have given a button as "view list" but once i select the action it is asking me fill the mandatory fields of the current form.
how to overcome this issue without filling mandatory field.it should take me to the list view.
appreciate your response.