Skip to main content

Search

Conditional Dialog Box

Answered

Comments

3 comments

  • Matthias_Walter

    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:

    1. add a new Form Load Action in the Ribbon of type "Execute Script"
    2. 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
  • MarkR

    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
  • Matthias_Walter

    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.