Total : 0.00 €

List option value

More
2 months 4 weeks ago #1612 by Paul
Paul replied the topic: List option value
Hello,

In regards to this:
<select name="aws_price_calc_22">
<option value="1">20x20</option>
<option value="2">100x50</option>
<option value="3">50x90</option></select>
Those values are the ID of the item, not the real values.
So, if you set up your item lable= 20x20 and item value=20x20. You will still get the same as before but it will be created an input hidden with your real values too.
<input type="hidden" id="aws_price_calc_[id_field]_options" value={[json code]}/>
Your real values will be stored in the [json code]

So there are not problems with text values.

Let me know if this solves your problem

Best Regards,
Paul

Please Log in or Create an account to join the conversation.

More
3 months 2 days ago #1608 by Andrey Gorlov
Andrey Gorlov created the topic: List option value
Hello
I am trying to make an integration with another app
And the option value must match the option text

Now what i get is
<select name="aws_price_calc_22">
<option value="1">20x20</option>
<option value="2">100x50</option>
<option value="3">50x90</option></select>

What i'm trying to make it generate is:
<select name="aws_price_calc_22">
<option value="20x20">20x20</option>
<option value="100x50">100x50</option>
<option value="50x90">50x90</option></select>

Any ideas?

Thank you!

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.142 seconds

Cart

Total : 0.00 €