Jump to content

prestashop validation class for comma separated data in table


Zohaib-fk

Recommended Posts

Hi,

I want to know what will be valiation class for comma separated data saving in table.

For example 1,2,5,9 like this.

Some of the validation class are isString,isBool,isGenericName,isBool.

I tried isInt and isString but both not working and gives invalid values error.

Any Idea?

 

PrestaShop Tutorials Videos [How to do Tasks]

 

 

Edited by Zohaib-fk
Post Updated (see edit history)
Link to comment
Share on other sites

I highly doubt there is an existing validation rule for this, so you will need to first start by defining what you want to achieve.  Are you validating that there are commas, or are you validating the data between the columns? 

Once you figure that out, then you will need to create your own validation function and then execute it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...