Min and Max Value not respode

QuestionsMin and Max Value not respode
Chris Doum asked 8 years ago

Hi Abu
I put in a column:
$col["editrules"] = array("minValue"=>5, "maxValue"=>10);
but not respode, have you any idea?

5 Answers
Abu Ghufran answered 8 years ago

Please share complete code + screenshot of the issue.
You can email me at [email protected]

Chris Doum answered 8 years ago

Sorry it’s my mistake, I understood that in this way regulate the number of characters allowed to subscribe to field without any intervention in mysql.

However, there is any way to define the MAX or MIN of the desired character without any intervention in mysql?

Abu Ghufran answered 8 years ago

I dont understand the second statement. Can you explain further with your use case.

Chris Doum answered 8 years ago

When I add or edit a field I want to define how many characters I can put (eg 50 characters).
Do not allow to subscribe the 51st character.
That I mean, is there any idea?

Abu Ghufran answered 8 years ago

You can use html maxlength input attribute. HTML engine will not allow 51th input by this.

$col["editoptions"]["maxlength"] = 50;

Your Answer

13 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?