In my form I ask the user to select a weight for their pet from a drop down list of 1~20kg. I want to store the value they select (for example I store a 1 if they chose 1kg or I store a 2 if they chose 2kg etc). Later on another page in the form I display their selection by adding this to a label: {data:petweight}kg in a label. This all works fine.
But I would also like to store a price value (that they don't see) when they choose the weight. So if they choose 1kg from the dropdown for example I store a value of 10, if they choose 2kg I store a value of 15 etc and then later on another page in the form I can display a price button to them US${data:price}.
How do I do that? I tried the alternative data field but I can't quite figure it out.
But I would also like to store a price value (that they don't see) when they choose the weight. So if they choose 1kg from the dropdown for example I store a value of 10, if they choose 2kg I store a value of 15 etc and then later on another page in the form I can display a price button to them US${data:price}.
How do I do that? I tried the alternative data field but I can't quite figure it out.
in the alternative data, in the scope selection, enter some postfix for your new value in the data array, example "price", then add the values rules, then you will be able to use:
{data:petweight_price}
You need to login to be able to post a reply.