Fields validation on submission

More
12 years 2 months ago #27872 by codewarrior
Hi,
is there a way in Flexi to validate (or not) fields after a form submission ?
I searched on the site and forum, but have not seen anything.
Thanks for help. Regards

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

More
12 years 2 months ago #27881 by micker
... you can only use requier option for field ...
no validation type email or number ...

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 2 months ago #27899 by ggppdk
Yes you can validate the fields after form is submitted:

inside plugin function (of your FLEXIcontent field):

onBeforeSaveField(...){
...
}

make the checks that you need, if they fail, you can return false, (Not zero, return false)

and this will cancel new item creation or existing item save, and the user form will be reloaded with old item data

I need to document 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.748 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