Opening a form on onclick event in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 10:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 10:20 PM
Hi Ravish,
Try with adding an angular directive ng-href="link" to the HTML element;
Form link should be in below format
?id=form&table=table_name&sys_id=record_sys_id&view=view_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2017 11:33 PM
Hi Ravish,
You can either use a "href" or you can use "Link to this page" option and then specify "form" in that page. form is the oob page created by servicenow whoch takes the sys_id of that record and opens up in form view.
Regards,
Shamma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2017 10:33 AM
The way you would do this is:
- Create new widget that contains the image
- Trigger a modal window (use ng-click instead of "onclick").
See this tutorial for working with modals: https://serviceportal.io/modal-windows-service-portal/ - In the template of the modal you will want to embed the form widget
See this article for embedding widgets: https://github.com/service-portal/documentation/blob/master/documentation/widget_embedded.md