Skip to content

WooCommerce checkout field filled with form tag, when it should come empty from form #68

Answered by RensTillmann
tivendo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Luis,

The "problem" here is that when you conditionally hide a column any fields inside this column basically do not exist.
That's why the tag {Billing_Firma} will just hold the value "{Billing_Firma}", it's basically plain text, because there is no field with that name if it's conditionally hidden.

What you will want to do here is add a "Variable field". Just add a Hidden field element, then rename it to Billing_Firma.

Then rename the original Billing_Firma to pre_Billing_Firma.

Now you can define your variable conditions so that whenever {pre_Billing_Firma} == "" (empty)
When it's conditionally hidden it will be an empty string, so the above condition will return true, in this case y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RensTillmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants