Skip to main content
Nintex Community Menu Bar
Solved

Link URL in Label not retaining variable value

  • September 12, 2024
  • 3 replies
  • 32 views

Forum|alt.badge.img+3

I am using Nintex Froms in Office 365. When sing a Label control I want to build in a link to a SharePoint list which will filter the list using a value on the Form.

In the label text I insert a link with the text below with the Variable as the filter text.

When I OK out of this and do anything in the Designer TAB and return to the link the variable is retained. If I click on the PREVIEW tab and then return to the Designer Tab, the variable is missing from the link text. This behaviour does not appear when i use the link directly in the text value where the ‘Animal ID’ field is in the images below. 

I’ve saved and closed the browser with no change in status.

 

Any ideas?

https://xxxxx.sharepoint.com/xx/xxxx/Lists/xxxxxxx/AllItems.aspx?useFiltersInViewXml=1&FilterField1=Animal%5Fx0020%5FID&FilterValue1=(VARIABLE)&FilterType1=Lookup&viewid=fa97dd55%2D2d81%2D482d%2Db9e8%2D51cc4bdd139a
Building the link in Designer

 

After entering and returning from PREVIEW

 

Best answer by feckinirish

So, following contact with Nintex support I got the following solution in a very prompt reply.

 

The issue is replicable on our end. If we combine text and variable, the complete URL will be broken.

There is workaround.

 

1. Please add a hidden text control and set the default value as below.

https://xxxxx.sharepoint.com/xx/xxxx/Lists/xxxxxxx/AllItems.aspx?useFiltersInViewXml=1&FilterField1=Animal%5Fx0020%5FID&FilterValue1=

 

2. Add another hidden text control and set the default value as below.

&FilterType1=Lookup&viewid=fa97dd55%2D2d81%2D482d%2Db9e8%2D51cc4bdd139a

 

3. Now combine all three controls in the Label URL field. It should look like this.

(TextControl-1)(variable)(TextControl-2)

View original
Translate
Did this topic help you find an answer to your question?

3 replies

bamaeric
Forum|alt.badge.img+13
  • Apprentice
  • 463 replies
  • September 12, 2024

Have you tried using a Form Variable to build the link? Then insert that Form Variable in the URL field when you are configuring the Link in the Label control.

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • 6 replies
  • September 13, 2024
bamaeric wrote:

Have you tried using a Form Variable to build the link? Then insert that Form Variable in the URL field when you are configuring the Link in the Label control.

That is what I have done. The ‘varAminalID’ is a variable and is used when building the link URL. The other Animal ID ‘abcAnimalID’ is a form field variable. 

I’ve tested both with the same result. 

Translate

Forum|alt.badge.img+3
  • Author
  • Rookie
  • 6 replies
  • Answer
  • September 16, 2024

So, following contact with Nintex support I got the following solution in a very prompt reply.

 

The issue is replicable on our end. If we combine text and variable, the complete URL will be broken.

There is workaround.

 

1. Please add a hidden text control and set the default value as below.

https://xxxxx.sharepoint.com/xx/xxxx/Lists/xxxxxxx/AllItems.aspx?useFiltersInViewXml=1&FilterField1=Animal%5Fx0020%5FID&FilterValue1=

 

2. Add another hidden text control and set the default value as below.

&FilterType1=Lookup&viewid=fa97dd55%2D2d81%2D482d%2Db9e8%2D51cc4bdd139a

 

3. Now combine all three controls in the Label URL field. It should look like this.

(TextControl-1)(variable)(TextControl-2)

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings