Submit point metadata, field list value

Post Reply
RytisT
Member
Posts: 85
Joined: Fri Aug 17, 2018 3:18 pm

Submit point metadata, field list value

Post by RytisT » Thu Jan 09, 2020 10:10 am

Hi. Having a bit of a problem.

I have submit point in switch, that has metadata field with "Dropdown List" and there are two more metadata fields that depends on answer to the first one. Basically, here's a rough example: http://prntscr.com/ql788m and http://prntscr.com/ql780u
Now, all is good and fine until I have to actually use this metadata: http://prntscr.com/ql7fq9

As you can see, both of them have same path, is there any way to distinguish it one from another? Since if I use one path somewhere, it won't matter what user chooses in submit point since one of those will appear there anyways. Hopefully this makes sense. Thanks.

freddyp
Advanced member
Posts: 465
Joined: Thu Feb 09, 2012 3:53 pm

Re: Submit point metadata, field list value

Post by freddyp » Thu Jan 09, 2020 11:07 am

One possible approach is to use this XPath:

Code: Select all

//field[@Id='spMF__2_693']/value
for the first metadata and the other Id number for the second.

Copy and paste this into the edit field underneath "XML location path".

RytisT
Member
Posts: 85
Joined: Fri Aug 17, 2018 3:18 pm

Re: Submit point metadata, field list value

Post by RytisT » Thu Jan 09, 2020 11:25 am

freddyp wrote:
Thu Jan 09, 2020 11:07 am
One possible approach is to use this XPath:

Code: Select all

//field[@Id='spMF__2_693']/value
for the first metadata and the other Id number for the second.

Copy and paste this into the edit field underneath "XML location path".
Thank you, it worked :)

LasseThid
Advanced member
Posts: 316
Joined: Tue Mar 03, 2015 2:30 pm
Location: Molndal, Sweden

Re: Submit point metadata, field list value

Post by LasseThid » Sat Jan 11, 2020 11:49 am

Also, if you want you can also use the tags Question, Metadata if Answer is 1 and Metadata if Answer is 2 as in //field[tag='Question']/value or //field[tag='Metadata if Answer is 1'']/value.

I use this a lot as it makes it much easier to see which metadata you're looking at, ie in a Mail Send configurator the Send to is a Single-line text with variables defined and [Metadata.Text:Path="//field[tag='Customer E-mail']/value",Dataset="Submit",Model="XML"] as variable.
Enfocus Switch 2019 Spring Edition, Enfocus PitStop Server 19, Enfocus PDF Review, HP SmartStream 12 & Kodak Prinergy 8.2 with RBA
MAN Roland R705 & R708, KBA Rapida 205, HP Indigo 7600, 7900 & 12000, Inca OnsetX2, Durst P10 among other things

Post Reply