Now I have added a Nintex forms web part on a page and have configured it to have the 'Edit' view displayed for the form. You need to provide the Item ID which has been set to 1. So the forms works fine, opens up the list item where ID = 1. Now when i click on my custom Button mentioned above, it takes me to the back end page 'EditItem.aspx' as it is configured to do so.
I'm wondering if theres a way to change the ID of the list item to be displayed on the fly on the Nintex Forms web part?
The Ninte Form webpart does not accept web part connections, so you will not be able to change the value that way, eq. using a filter webpart. And from what I can gather in the HTML, and also how most webparts are managed in SP, the config data is stored in server side properties and not on the page itself. So when the item is being rendered, server side code is executing the query based on the configuration. You will not be able to short circuit that configuration before the page load by using JQuery to change the ID value before it renders or performs a query.
Why do you use the pages to display the form? Maybe the same thing can be achieved another way?
Thanks for your reply Andrew.
I'm doing exactly that already and it works fine when I am using the form thru the list (eg: edititem.aspx). I want to do this thru the Nintex Forms web part on a page. Using window.location redirect will take me away from the page where the forms web part is located and i dont want that.