Hi. Use “silent validation” mode http://joxi.ru/p279B3oUKKQbKr to hide “The field is required”.
Hmmm sort of, now it just doesn’t do anything, if you don’t select an option, the warning doesn’t pop up, so it’s not obvious what your doing or what you have missed
Have I done something wrong?
I could use CSS to remove it, but I wanted it to work in reverse, as in not show unless the user forgets to select something, then it should appear
I am sorry but there is no way to change it. This is how it works. You can hide or show warnings if field is required. But we can’t change that behaviour.
Are you serious, every form in the world works the opposite way, have no idea why you have done this makes no sense what so ever
“I wanted it to work in reverse, as in not show unless the user forgets to select something, then it should appear”
Please, enable “silent validation” and “calculate btn” settings in General Settings and it will work exactly like that: if a user forgot to choose/add something for required fields, then the validation error msg will appear for such fields after user clicks on ‘calculate’ button.
“Are you serious, every form in the world works the opposite way, have no idea why you have done this makes no sense what so ever”
Simply because I have to deal with WC and how the things are done in WC as well. If it would just mine form, I would have had more freedom.
But every form in the world only warns when you haven’t completed something, it doesn’t warn before than disappear when you have completed, I just tested this form, if you don’t add text in this box and press submit it says
ERROR: Your reply cannot be empty.
It doesn’t warn me I need to type in the box and then vanishes when I do type something, it’s madness, I have never in 15 years seen a form which warns you before you have even done something
Every form on WC works that way, every contact form, every ecommerce field, anything which is set to required, only produces a warning if you don’t complete
Enable “silent mode” and it will not warn you either.
But silent mode is no different to CSS display:none; it doesn’t help, we need the warning, but need it to appear when a customer has missed something, like every other website on the planet
Then additionally enable “add calculate button” setting and validation msgs will be shown after the click on this button.
But I don’t need to calculate anything, the product asks the customer to select a choice of stickers they wish to add to the product, but it’s required, I just want a warning to appear, if they try and buy without selecting a choice
Does the calculate button produce and actual button they have to click on, as this won’t work, as they don’t need to calculate anything
“Calculate” btn is like “click me when you are done adding options”. Fields validation is performed after that and sends ajax request for price calculation if everything is ok. Even if you do not change the price based on options, you still may use it. Just put {uni_cpo_price} variable into main formula field and save. And enable price calculation as well.
What I have described so far is the only possible way to achieve what you need.
-
This reply was modified 7 years, 6 months ago by
moomooagency. Reason: typo