Jump to content

Validations not firing for empty number attributes


Darth Moxy

Recommended Posts

I created validations that would fire when a customer hasn't put in width, height or depth, but they're firing on one product & not another

If you use the 'required for validation' checkbox on number attributes (only available when you're overriding the attribute at the product level, as seen in screenshots below) then the validations won't try to fire until the validation is filled out:

Link to comment
Share on other sites

On 2/15/2022 at 2:05 PM, Darth Moxy said:

I created validations that would fire when a customer hasn't put in width, height or depth, but they're firing on one product & not another

If you use the 'required for validation' checkbox on number attributes (only available when you're overriding the attribute at the product level, as seen in screenshots below) then the validations won't try to fire until the validation is filled out:

Can you provide a link to the help page this was quoted from? Are you saying that validations will not "try to fire" on a number attribute with a zero / null value that has the "require for validation" box checked?

Link to comment
Share on other sites

I've used these types of validation on optional modification that, if opted for, need additional information. If the additional information is a value from an entry field, you need to go to that attribute and default it to "0". Once that's done, you need to create a validation with the conditions of "if this optional modification is opted for, and this addition info equals a 0, then fire." You will then white an action message saying something along the lines of "if this optional modification is opted for then you must provide the additional info".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms and conditions of this site