- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 11:10 PM - edited 11-02-2023 11:13 PM
I have a custom create incident button in the esc portal under the knowledge article, on click of that button it should navigate to open an incident record producer along with that it should populate the short_description variable of the record producer to Knowledge article title or name then user will fill the required details and submits the form.
Please have a look on the image to understand the requirement in better way
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 06:25 AM
Hi Kishor,
Apologies for late response. Sure I'll help you out.
Put your URL in url variable but don't remove this line ('&short='+c.data.shortDesc;)
This will get the knowledge short description from the Server.
Once the above URL is opened in new window you will notice that the short description of Knowledge Article is in the URL after short keyword.
Now you only need to run below Client script and you will get the short description.
var url = new GlideURL(top.window.location.href);
var test = GlideURL.getParam('short');
g_form.setValue('your variable name', test);
Please mark my answer correct if it resolves your issue.
Thanks,
Utpal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 11:06 AM
Please add c. before the function calling in ng-click.
It should be like ng-click = "c.createIncident()"