0

I created a custom field in Order channel and created an imput named custom_data[nameofmycustomfield] in my checkout form as explained in the docs here.

But I can't make it required (validation sensitive). When I put his name as parameter 'required' 's value it doesn't work.

How can I do?

Thanks in advance.

2

(I'm with Vector, the people behind CartThrob)

The fix for this is to set

custom_data[nameofmycustomfield]

as the field name in the required parameter, not just nameofmycustomfield.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.