WPIntell

Source evidence

populate SELECT options with JS

Advanced Product Fields (Product Addons) for WooCommerce 路 support 路 2026-06-30T22:36:00+00:00

mixedsentiment
highseverity
0.94relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 20 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
irving.bos resolved
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 Hi @irvingbos As you already found out, options are linked to the backend by ID. You are free to mimic it because it鈥檚 just a random 5-character string. 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! 馃檪

Comments

2 shown
Maarten B 2026-07-01T06:53:00+00:00

Hi @irvingbos As you already found out, options are linked to the backend by ID. You are free to mimic it because it鈥檚 just a random 5-character string.

irving.bos 2026-07-01T18:28:00+00:00

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! 馃檪