IanG
Scholar

Current Form Version (single form)

Is it possible to get the current version of a form from somewhere? 

 

Some of our users are complaining of faults we have fixed already but we have no way of knowing if they have updated the published form version on the nintex app. I was looking to add the current form version to our form as a footer or similar so we can see when things have been updated. I found this link which has a similar function: (https://community.nintex.com/t5/Nintex-for-SharePoint-Forum/Nintex-form-version/td-p/27572) but it appears older and im not sure what lookup they are trying to do.  i can get to /nintexforms/versionhistory.aspx?listID= but that gives me the full list but i just need the latest version. Is this even possible?

0 Kudos
Reply
3 Replies
MegaJerk
Collaborator

Re: Current Form Version (single form)

Because a few other people in that old thread are also having trouble, I will try to answer this with a little more expansion. 

 

All of your Nintex Forms for a given site are stored within a hidden library called NintexForms. You can find it by replacing everything in the URL after the site you're currently in with the name "NintexForms". Here is an example of what your URL should look like:

http://SharePointURL/sites/SomeSite/SomeSubSite/NintexForms 

 

Once you are in the Library, do yourself a favor and click on the three dots, then Modify This View:

MegaJerk_0-1659017679297.png

 

In the View Settings, find and click on the checkboxes for both [Version] and [FormListId]:

MegaJerk_1-1659017757277.png

(note: they are shown here at the end of Title because I have already checked them. But if you're modifying the view for the first time, you will need to find them amongst the other columns! just scroll down a bit ;))

 

Cool, so now you have a Library that shows you a bunch of non-sensical GUIDs for Form Construction Data, Version, and FormListID... what good is that? 

 

Well if that FormListID is actually a reference that ties the Form xml file to whichever SharePoint List / Library the Form is actually associated with. We can use this information to pull the current Version number into our Form when we render it by using a Lookup Formula. But first we'll need to make sure we have the List ID of any given list where we are wanting to show this for a Form. 

 

There are a few ways to do that

 

Method 1. When you open up the Form Editor, you'll notice that in the URL bar there is a long string of characters after the term "ListFormDesigner":

MegaJerk_2-1659018309425.png

 

Text Example:

http://SharePointURL/sites/SomeSite/SomeSubSite/_layouts/15/NintexForms/ListFormDesigner.aspx?List=%7BXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX%7D 

 

Well, that string of alphanumeric characters "%7BXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX%7D" is the ListID. It should be noted that the %7B and %7D are both stand ins for different characters, "{" and "}" respectively. That means that your final ListID should look something like: 

{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

 

 

Method 2: Clicking on the Library Settings will take you to a page of settings where the URL will also show the ListID much like how it does above:

MegaJerk_3-1659018628173.png

 

MegaJerk_4-1659018659384.png

 

If you're not able to easily see where those brackets should go, you can throw the entire URL into something like the URL Decoder (https://meyerweb.com/eric/tools/dencoder/) and click on the Decode button:

MegaJerk_5-1659018767656.png

 

MegaJerk_6-1659018774972.png

 

Now that you know the NintexForms list and your List ID, all we need to do is create a lookup on the Form in question. Here I've made a Calculated Control:

MegaJerk_7-1659018852051.png

 

Settings of Calculated Control:

MegaJerk_8-1659018884372.png

 

And formula:

MegaJerk_9-1659018936952.png

 

Note that YOUR LISTID WILL BE DIFFERENT! It's different for every list, on every sharepoint, everywhere in the world!

 

However, when we now preview our form I can see:

MegaJerk_10-1659019065593.png

 

 

Which indeed matches what the designer tells me:

MegaJerk_11-1659019078308.png

 

I hope that this takes any of the guess work out of getting this to work in your own forms. 

 

Please mark this answer as the solution if it has solved the issue. 

 

Thank you

 

 

 

 

Reply
IanG
Scholar

Re: Current Form Version (single form)

Hi Mega, 

 

Many thanks for your comprehensive reply. I was almost there!

 

For some reason i couldn't access the NintexForms list directly this morning but it appears to be working now. 

 

The lookup works perfectly for desktop forms, do you know if there is a way to do the same for Nintex Mobile forms? I am currently getting a Javascript exception when using the calculated field. We have an app tunnel back from the device to our SharePoint server so i know the connection is there but other than a blanket "A Javascript error occured" message i dont have a lot to go on. 

 

Thanks for any assistance. 

0 Kudos
Reply
MegaJerk
Collaborator

Re: Current Form Version (single form)

As far as I know, javascript doesn't work in mobile forms  

 

It's been a long standing request, but will likely never be implemented 

https://nintex.uservoice.com/forums/229417-6-nintex-mobile-app-studio/suggestions/8780188-javascript...

 

 

0 Kudos
Reply