• Resolved finleydesign

    (@finleydesign)


    Hi, sorry I can’t show, but see there is reference else where but no answer, on each option there is horrible looking red block saying

    “The field is required”

    Shouldn’t this warning only show when an option hasn’t been selected, at the moment, it’s there until you select an option, however almost all other required fields, warn you if you don’t complete the option or select form the option

    Is there a way to reverse this?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author moomooagency

    (@moomooagency)

    Hi. Use “silent validation” mode https://joxi.ru/p279B3oUKKQbKr to hide “The field is required”.

    Thread Starter finleydesign

    (@finleydesign)

    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

    Plugin Author moomooagency

    (@moomooagency)

    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.

    Thread Starter finleydesign

    (@finleydesign)

    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

    Plugin Author moomooagency

    (@moomooagency)

    “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.

    Plugin Author moomooagency

    (@moomooagency)

    “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.

    Thread Starter finleydesign

    (@finleydesign)

    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

    Plugin Author moomooagency

    (@moomooagency)

    Enable “silent mode” and it will not warn you either.

    Thread Starter finleydesign

    (@finleydesign)

    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

    Plugin Author moomooagency

    (@moomooagency)

    Then additionally enable “add calculate button” setting and validation msgs will be shown after the click on this button.

    Thread Starter finleydesign

    (@finleydesign)

    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

    Plugin Author moomooagency

    (@moomooagency)

    “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 6 years ago by moomooagency. Reason: typo
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘The value is required warning’ is closed to new replies.