Where can I find some documentation for the <sp-model> directive used in custom widgets.

feras3
Tera Contributor

Where can I find some documentation on the <sp-model> directive used in widgets. I am attempting to build a simple list and for each item in the list:

  1. Open a modal window with the sp-variable-editor widget as the content shown.
  2. Have the user fill out the variables
  3. Hit save which will update the form

 

When I hit save after updating the first time and upon opening the second item in the list I am unable to update it as I can with the first. I have to reload the page and use click the second item first as the <sp-model> directive is not being created uniquely per modal window. 

 

 

2 REPLIES 2

Mohith Devatte
Tera Sage
Tera Sage

Hello,

Can you paste the screenshot of the issue ?

Also refer to below link for more info on spModal API

https://developer.servicenow.com/print_page.do?release=quebec&category=null&identifier=SPModal-API&m...

DhyeyRajveer
Tera Contributor

The link's not working, can you check it again please?