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

Add variable to URL on Nintex Form

Jump to solution

All,

I've a Nintex Form and I want to create a link on the form (non workflow) which includes a variable value.

i.e. www.mydomain.com/user=VariableName

I'm attempting to have the link open in a new tab and the result would be a filtered SharePoint 2013 list. A list lookup control on the form is a no go.

I've played with labels, calculated values, single, rich text boxes, insert functions.

Any ideas?

Thanks

A

Labels: (1)
0 Kudos
Reply
9 Replies
Automation Master
Automation Master

Re: Add variable to URL on Nintex Form

Jump to solution

use calc value control with formula like this

"<a href=\"http://www.mydomain.com/user=" + varAppendToLink + "\"> click here </a>"‍‍

calculated value‌ calculated field‌ calculation control‌ url‌ link‌   _blank‌

Reply
wilkies0106aw
Nintex Newbie

Re: Add variable to URL on Nintex Form

Jump to solution

Thanks, works as described in my situation, now wrestlign where/how to put the target="_blank" attribute/

Reply
Automation Master
Automation Master

Re: Add variable to URL on Nintex Form

Jump to solution

anywhere in opening <A> tag - HTML a target Attribute 

0 Kudos
Reply
wilkies0106aw
Nintex Newbie

Re: Add variable to URL on Nintex Form

Jump to solution

Thanks,

That is what I'm playing with. All looks correct. Yet, when I preview my form, it fails to load and the only change is adding the target="_blank"

i.e. "<a href=\"https://domain.com/_layouts/15/start.aspx#/Lists/ListNameAllItems.aspx#InplviewHash122baabf-08e2-4a7..." + EmployeeDisplayName + "\" target="_blank" > Recent Client Ticket History </a>"

0 Kudos
Reply
Automation Master
Automation Master

Re: Add variable to URL on Nintex Form

Jump to solution

you have to escape apostrophes around _blank just like ones for href attribute

Reply
wilkies0106aw
Nintex Newbie

Re: Add variable to URL on Nintex Form

Jump to solution

Genius! Thanks very much.

For those like me who had no idea what a escape apostrophe was. Googleing with some trial and error my url looks as follows:

"<a href=\"https://domain.com/_layouts/15/start.aspx#/Lists/ListNameAllItems.aspx#InplviewHash122baabf-08e2-4a7..." + EmployeeDisplayName + "\" target=\"_blank\" > Recent Client Ticket History </a>"

Reply
Automation Master
Automation Master

Re: Add variable to URL on Nintex Form

Jump to solution

Amazing - I always thought "open in new window" wasn't possible in nintex forms!  learn something every day

Reply
Automation Master
Automation Master

Re: Add variable to URL on Nintex Form

Jump to solution

if you are done with your issue, mark the question answered.

0 Kudos
Reply
wilkies0106aw
Nintex Newbie

Re: Add variable to URL on Nintex Form

Jump to solution

FYI - I've been doing testing using the the employee's preferredname i.e. active directory display name as part of the url. If your users don't have a hyphenated name you'll be OK.

I've several users who had hypenated surnames i.e. Bob Nin-Tex. The created url would only go as far as the name Bob Nin. Luckily for me we record employee numbers within AD, so I've been able to change my variable to use that field as part of the userprofilelookup and then alter the created url to filter on an employee number column, not the logged to column.

Reply