Textfield - inputting numbers only

More
12 years 3 weeks ago #31205 by brandonking
Hi,

Is it possible to add an option to limit only numeric digits in text field?

Regards,

Brandon

Edit: Could you also add two message box in backend. One for explanation for entering value(instead of using tooltip) and another one for error message.
Display those right next to value field when user entered wrong value.

It would be great if these message box available for all kind of FC fileds.

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #31215 by ggppdk
Effectively you speak of JS validation in text field?

via a value-type parameter with options:
- alphanumeric
- numeric
- integer
- email
- etc


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #31219 by brandonking
Yes, that's right.
Will it be accepted for next version?

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #31224 by ggppdk
This almost made it in RC9a, because the JS validation code was already examined recently, plus there was a similar discussion before.

1. Js validation functions we have already,

so if we add a parameter "value type" that will control adding CSS classes like
validate-number
validate-email
validate-integer
validate-mantissa
etc

to the (input) form field, then it should work, just we should add a little more code to warn user of what he/she has to type


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #31238 by igcorreia

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #31249 by ggppdk
So you think since we already load jQuery in the form that we should use jQuery UI to validate input various input types,

i see that we can also allow custom format MASKS too !!!

this will certainly give more value to the field


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.518 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline