• Resolved irving.bos

    (@irvingbos)


    Hi, great plugin!

    I am looking to populate a SELECT field OPTIONs dynamically (with JS) as they change daily, and have it working, except it does not carry the value forward to the checkout page, nor does it show in the emails generated.

    I notice the OPTIONs have a value of a seemingly random string, which looks like it ties back to the custom field setup. What is that string? Can i mimic it?

    Do you have any suggestions or help? Many thanks,

    irving

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maarten B

    (@maartenbelmans)

    Hi @irvingbos

    As you already found out, options are linked to the backend by ID. You are free to mimic it because it’s just a random 5-character string.

    Thread Starter irving.bos

    (@irvingbos)

    Thanks, I dont think I explained my question very well; it looks like the string ties back to the values set as OPTIONs in the admin area, so even if I re-use the strings, it will revert back to the original value assigned. I also dont know at setup time how many OPTIONs there will be; could be 50-100 differnet ones.

    If any one is interested, I worked through the issue by adding a string field (call it xstring) to the form , and then added an onclick event to the SELECT to populate xstring witht the selected value. SO, even though the SELECTed OPTION does not come through on the form, the xstring field does. (I also hid the xstring field on the form, to avoid confusion, and getting over-written) . Hope that helps somebody! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.