How to open modal dialog from Data Set row
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2025 06:51 AM
Hello,
I am using Yokohama Servicenow and now I want to open modal dialog from Data Set row and provide id of this row.
So the button "Options" has to open Modal dialog and provide to this dialog id of the document. How can I achieve this? This is how my data looks like
{
"all_actions": [
],
"is_last_page": false,
"items": [
{
"propValues": {
"imageType": "image",
"imageURL": "doctype-document.svg",
"mainActions": [{
"buttonType": "secondary",
"size": "small",
"icon": "gear-fill",
"label": "Options",
"name": "options",
"actionType": "uxf_client_action",
"actionDispatch": "OPEN_OPTIONS_MODAL"
}
],
"model": {
"photo": "doctype-document.svg"
},
"subtitle": "Description of the document",
"titleLabel": "Title of the document"
},
"serverScript": "",
"template": "now-card-evam-record"
}
],
"page_number": 0,
"page_size": 3,
"selected_filter": ""
}
P.S. Is there any documentation or tutorials about possible options for this JSON and possibilities?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 12:34 AM
Hey @mmorski, were you able to achieve this? I have the same requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 12:44 AM
Hi @Bhattsid not yet. For now this case is waiting until I will have time. I will get back to this topic soon and will let You know.