You are viewing limited content. For full access, please sign in.

Question

Question

Outflow path conditions: Xpath wildcards?

asked on January 28, 2015 Show version history

Hi Forms experts,

 

I am using an inclusive gateway to route using a dropdown within a table. Forms tracks variables using TABLE_NAME_n where n=column number.  When it comes to writing the path conditions, I need a wild card for part of the xpath expression.

 

For example, right now my path conditions might look something like this, in an attempt to capture all possible outcomes.

/dataset/Charge_Detail_1/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_2/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_3/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_4/Responsible_Department="PUBLIC WORKS"or 
/dataset/Charge_Detail_5/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_6/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_7/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_8/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_9/Responsible_Department="PUBLIC WORKS" or 
/dataset/Charge_Detail_10/Responsible_Department="PUBLIC WORKS"

 

I'd like to know the correct syntax to wildcard the Column Number. Example below (this does not work, hence my question)

/dataset/*/Responsible_Department="PUBLIC WORKS"

 

0 0

Replies

replied on January 28, 2015

Hi there,

Currently you can use Javascript to check when user fill in the form.

We'll take your request into consideration in future version.

0 0
replied on January 28, 2015

Does this mean Forms does not support wildcards in xpath? W3schools indicates it's certainly possible, but I've been unable to get it to work.  Also your javascript recommendation is vague, how is it that js would assist in gateway routing?

0 0
replied on January 28, 2015

If custom javascript is checking the collection fields when people fill in the form, and push result to an hidden input field, that variable can be used later in gateway.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.