cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Open form in modal from button click

Jump to solution

is there a method for opening a form within a modal window from a button click? I'm trying to keep the user from going to a list, and clicking on new item.

I could do something like this, but wanted to know if there is a better way when using Nintex.

onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: '../Lists/GBE/NewForm.aspx', title: 'User Survey' }); return false;"

Labels: (3)
Tags (2)
Reply
5 Replies
Highlighted
Automation Master
Automation Master

Re: Open form in modal from button click

Jump to solution

That seems fine, You can also use a Custom Ribbon Button to do the same thing.

Where will the user be clicking this button or link?

Do you want to prevent users from creating new items? Or just provide an alternate method to create new items?

Reply
Highlighted
Nintex Newbie

Re: Open form in modal from button click

Jump to solution

we are trying to prevent the user from navigating to the SharePoint list. they would submit the form, and then be redirected to another page

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Open form in modal from button click

Jump to solution

Instead of using the button to redirect, which you could do, you could use the List Form Webpart. Add this webpart to any page (away from list, on a home page per say). The user can fill out the form and click save. The webpart allows for redirect, or simply show a confirmation message.

More details on the web part:

The Nintex Forms List Form Web Part allows you to embed a list form designed using Nintex Forms on a page.

List Form Web Part Settings

Form Mode: Show the List Form in new, edit or display mode.

Site URL: The Site URL to retrieve the List item information from.

Redirect URL: The URL to redirect to after the form has been submitted.

Confirmation message: The confirmation message to be displayed after the form has been submitted.

List Name/ID: The List Name/ID to retrieve the form from.

If Edit or Display is selected for the Form Mode:

Item ID: The ID of the specific item in the list to retrieve.

If New is selected for the Form Mode:

Content Type: The content type name/ID of the to be displayed.

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: Open form in modal from button click

Jump to solution

Hi,

This solution is great for a Static option. Users must enter the correct ID.

My user has to select different items in the list each time.

Is there any way to have it in a Dynamic way, using a variable or a field other than the ID?

Thanks

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Open form in modal from button click

Jump to solution

It is possible to connect the NF List web part to a list, please see this post Want to open edit form based on selection from a connected list webpart as it's a thorough example of how to set it up.

0 Kudos
Reply