Conditional Dialog Box
AnsweredHello,
I am attempting to replace an Access App with Skybow Rich Forms.
On my current Access App when a checkbox field is ticked a dialog form from another list pops up for the user to complete. Is there anyway to have a SharePoint field trigger a dialog box from another list based conditionally on the data inputted into field?
-
Hi Mark Robertson,
for the moment there is no such option, but it's actually a good idea (Thanks!) and I've added to the idea section: Get form field inputs in expression builder
Just give it a vote get it higher prioritized in our development.
For now you can do the following manual steps:
- add a new Form Load Action in the Ribbon of type "Execute Script"
- add the following script to register a change event on the checkbox (internal name "OpenForm") and open up a modal dialog:
ArdeviaJQuery(".ms-formbody[fieldname=OpenForm] input").change(function() {
if(this.checked) {
SP.UI.ModalDialog.showModalDialog(
{
url: "urltoform",
width: 500,
height: 500,
title: "This is the dialog title"
}
);
}
});Regards
Matthias
0 -
Hi Matthias,
I dropped the ball on this project and I am just getting back to it. I copied and pasted the script above into the load form action builder as execute script, but I received the following error messages; "ArdeviaJQuery not defined" and "SP not defined"
0 -
Hi Mark Robertson,
this is right, I got this as well, but if you save it, it will work anyway.
Regards
Matthias
0
Please sign in to leave a comment.
Comments
3 comments