I have a form with this input field
that is linked to this CMS.
When I try connecting the form in logic, that input field does not appear. Am I missing something?
Thanks
I have a form with this input field
that is linked to this CMS.
When I try connecting the form in logic, that input field does not appear. Am I missing something?
Thanks
To put it simply, Logic can’t “see” the fields you’re generating in custom code.
Instead, create an actual input element, and use custom code to set the value on it.
Noice! That works! Thank you!
That’s big brain. How exactly can I tell the code to do that?
Depends on your HTML.
One simple way is to use SA5 dynamic attributes;
x-value
and bind it to your CMS fieldWow, this is 3000 iq
Thanks a bunch!
Hi there, I’m using data in a json object in logic and the dynamic data appears to be blank unless the input field with the x-value is visible. Any recommendations on the best way to “hide the field”?
Hi Cody,
You’re probably hiding it using settings, you want to make it display: none under style. They’re very different things.
@memetican
Saw your post on this and am trying it out, but Webflow Logic doesn’t appear to recognize that the field is filled out as it’s not returning the value. Any insight on what may need to be changed?
I have the input nested in a hidden parent div. When I check the live page I can see that the value is set using x-value, but I submit the form the value doesn’t seem to be recognized by Logic. Trying to pass this set value as part of a custom field designation.
Hi @Ash_Faulkner make certain you’re using an actual Input element, and not an embed with <input type=hidden...
code.