URGENT - Autopopulate to form from Custom Module

Hi Guys,
I’m hoping someone can help me out. We recently did a redesign here https://idahowednesdayschild.org. On the old site and using the same form, both the Child’s Name (from the custom module title) and the WCID # (from a text field in the item detail) would auto-populate when a site user was filling out the form.
After launch of the new design, the form is autopopulating the childs name but NOT the WCID number.
Instead, it’s stating must enter WCID number and since this is a read-only field that is not autopopulating, the form is unable to be submitted.
See Loom video here:
Loom | Free Screen & Video Recording Software

Thank you so much, this is an urgent issue for this client.

Hi @Daun_Jacobsen
You have a script above the form which is attempting populate those fields, however, the script is looking for the WCID value from an element with class ‘wcid’ and there isn’t one.
You could fix the javascript, or more easily, just add the WCID directly to the field with Liquid like this:

<input type="text" id="WCID" name="WCID" required="" readonly="" value="{{this['WCID']}}">
1 Like

Thank you so much Adam!

1 Like