- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 09:50 AM - edited 08-27-2023 09:56 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 08:28 PM
@Hi @Rajat10 ,
var newRecord = new GlideRecord(My table');
//newRecord.setValue('name', current.getValue('name'));
var url = '/<your_table_name>.do?sys_id=-1' + '&sysparm_view=<your_desierd_view>' + '&sysparm_query=name=' + encodeURIComponent(current.getValue('name'));
action.setRedirectURL(url);
Can you try doing it this way. In the URL you can set the view and in sysparm_query, you should be able to set the values as before which will open with pre-filled name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 08:28 PM
@Hi @Rajat10 ,
var newRecord = new GlideRecord(My table');
//newRecord.setValue('name', current.getValue('name'));
var url = '/<your_table_name>.do?sys_id=-1' + '&sysparm_view=<your_desierd_view>' + '&sysparm_query=name=' + encodeURIComponent(current.getValue('name'));
action.setRedirectURL(url);
Can you try doing it this way. In the URL you can set the view and in sysparm_query, you should be able to set the values as before which will open with pre-filled name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:46 AM
Thanks a lot. That worked 🙂