Validate field value by javascript before submitting an item

More
6 years 5 months ago - 6 years 5 months ago #69849 by Ali_wdm
I want to validate field value of item before submitting using javascript. I know there is a function onBeforeSaveField to achieve this, I think that this function works on server side. I want to validate it on client side using javascript.
Last edit: 6 years 5 months ago by Ali_wdm.

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

More
6 years 5 months ago #69852 by ggppdk
Yes onBeforeSaveField is server side.

I think it is best to make a Faq article for this


-- 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
6 years 5 months ago #69879 by Ali_wdm
Thanks for your reply.
Actually I have some dynamic fields, one of these field should have some value. I want to validate it before submitting item.
As you suggest to read FAQ, that was not my requirement.
I can validate only one field on 'BLUR' event.

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

More
6 years 5 months ago #69893 by ggppdk
Hello

there is a misunderstanding
- i have not asked you to read the FAQ artcile

i said that i want to write a new article
i have not written it yet
(it does not exist yet !)

please answer this question:
is the field that you want to custom validate is a "text/number/custom validation" field ??

(then if it is of the above type, you can add your custom validation via a parameter)


-- 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
6 years 5 months ago - 6 years 5 months ago #69917 by Ali_wdm
Field types are text and select.

How can I validate it via parameter..??
Last edit: 6 years 5 months ago by Ali_wdm.

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

More
6 years 5 months ago #69919 by ggppdk
Hello

yes in text field you can enable "custom" validation

and then configure the custom validation via parameter
also an input "mask" will be shon to the user


-- 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: 0.295 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