Page 1 of 1

Submit point metadata, field list value

Posted: Thu Jan 09, 2020 10:10 am
by RytisT
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.

Re: Submit point metadata, field list value

Posted: Thu Jan 09, 2020 11:07 am
by freddyp
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".

Re: Submit point metadata, field list value

Posted: Thu Jan 09, 2020 11:25 am
by RytisT
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 :)

Re: Submit point metadata, field list value

Posted: Sat Jan 11, 2020 11:49 am
by LasseThid
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.