redirect after submitting in custom app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi,
I have a custom app I am making in ui builder and I am wondering if someone can help me with a updating a the script on a ui action so that after I submit a form, it goes back to the list view of the form just like in native ui.
I tried the following script but it is still not redirecting back to list view after submitting successfully:
answer = current.insert();
if(answer){
action.setRedirectURL(current.getTableName() + '.list')
}
gs.include('ActionUtils');
var au = new ActionUtils();
au.postInsert(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @BrianaC
can you share me screenshot what you are created, it is declaractive action or ui action
and can you please check the scope as well what is table scope and your button scope in which its created.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
Hi @Sanjay191
I have created a UI action and it is in the global application but for my specific custom table which is an app I made in UI Builder. I added lines 2-4 to the script, the rest is OOB from the submit action used elsewhere in the instance (like sow)