Hello.
How do you have the red square appear to the right of a required date field? Other fields have a red square but I cannot seem to figure out how to have it next to a required date field.
Thanks in advance.
No red square to the right of required date field
5 posts
• Page 1 of 1
No red square to the right of required date fieldHello.
How do you have the red square appear to the right of a required date field? Other fields have a red square but I cannot seem to figure out how to have it next to a required date field. Thanks in advance.
Re: No red square to the right of required date fieldHi,
The red square indicates a mandatory field in the database. If it's not set to be required in the DB then by default, Xataface will not show the red square. You can either change this in the DB by making it madatory or add this in fields.ini for the respective table and respective column.
Rgds Paul
Re: No red square to the right of required date fieldApologies, I didn't really read your question properly. I think the validators:required may still work though...
Re: No red square to the right of required date fieldYes, this did work. Thanks.
Re: No red square to the right of required date fieldI am having this problem also, at least as of version 1.2.6. I think it applies to more than just date fields, but definitely at least to date and time fields. I have date and time fields set to NOT NULL in MySQL, but the red dot does not appear next to these fields on the edit page unless I explicitly enter the validators:required = true in fields.ini.
My understanding is that all fields that are defined as NOT NULL are required by default. Is this a known bug, or am I doing something wrong? Thanks, Alan
5 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 27 guests |