Validate field value by javascript before submitting an item

More
7 years 2 months ago #69999 by Ali_wdm
How to validate select field...??

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

More
7 years 2 months ago #70001 by ggppdk
hhmm

but select field has preset values
- so it already shows the values that are valid


-- 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
7 years 2 months ago - 7 years 2 months ago #70015 by Ali_wdm
Sorry, I did not get you.

How can I validate some fields on clicking save button of item....??
Last edit: 7 years 2 months ago by Ali_wdm.

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

More
7 years 2 months ago - 7 years 2 months ago #70033 by ggppdk
Hello

all fields have validation when form save is clicked
validation is happening according to parameters

1. most basic validation is "required"

2. chekckbox , chekckbox image, selectmultiple also have
- minumum and maximum number of values

3. multi-property field like address international can also have some properties e.g. "city", "country" as required

4. some field have specific validation e.g. e-mail field, has email format validation, weblink field has URL validation

5. then the free input field "text",
- you can select from a set of a preset validation, e.g "float" e.g. "integer" e.g. "url"
- you can also configure a full custom format + masking (see parameter)

About the select field, it has a preconfigured drop down of values, it does not have free selection !


(Finally irrelevant to your question but i will mention it) even if users hacks the form to submit a different value, the server side validation will reject it
e.g. allowed values 1, 2, 3
and form submits 4 , value will not be saved


-- 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...
Last edit: 7 years 2 months ago by ggppdk.
The following user(s) said Thank You: Ali_wdm

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

More
7 years 2 months ago #70050 by Ali_wdm
Please give one example of select & text. In my case, I dont want to validate values of fields, I only want to check if group of some field is blank or not.

In my form
There is group of 4 select field & one text box. I want to check if all of select fields and text field have blank, then form should not be submitted.

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

More
7 years 2 months ago #70051 by ggppdk
Hello

enable the "Required" parameter inside editing TAB


-- 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.485 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