- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 09:53 PM
Hello,
I want to create a UI action on the custom record. I know we have this option to export as PDF in the form context. But I also want a UI action basically a button on the record. Can't find the script to do this.
Any help appreciated! Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:01 PM
Hi @Akshata5
You can create an UI Action and g_navigation to open the URL exporting PDF.
Sample below.
function printPDF(){
var uri = g_form.getTableName() + '.do?sys_id=' + g_form.getUniqueValue() + '&PDF';
g_navigation.open(uri);
}
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 10:01 PM
Hi @Akshata5
You can create an UI Action and g_navigation to open the URL exporting PDF.
Sample below.
function printPDF(){
var uri = g_form.getTableName() + '.do?sys_id=' + g_form.getUniqueValue() + '&PDF';
g_navigation.open(uri);
}
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2023 11:00 PM
Thank you so much. It worked like a charm.