-
AuthorPosts
-
K Schneider Friend
K Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
January 10, 2016 at 1:40 pm #842754Hi,
is it posible to validate the date format.
<field name='date_of_birth' type='calendar' class='calendar' format='%d-%m-%Y' default='00-00-0000' label='TPL_EX_DATE_OF_BIRTH' description='TPL_EX_DATE_OF_BIRTH_DESC' />
When someone add in the following text in the date field "okt 2015" the content article is fully messed up.
But I can’t find if it is possible to check the fields before saving.Best regards,
OceanSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 11, 2016 at 7:42 am #843837Hi
Could you clarify the steps to replicate the issue? I have no clue of where to find this field.
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
January 11, 2016 at 7:59 am #843861extra fields ??? you can find it over here: https://www.joomlart.com/tutorials/joomla-tutorials/adding-joomla-custom-fields-in-article-with-t3-framework
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 12, 2016 at 2:17 am #844978I know that tip but I would like to know how you add to replicate the issue?
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
January 13, 2016 at 6:31 pm #846924Add the following script to ../templates/ja_medicare/etc/extrafields/test-fields.xml
<?xml version='1.0' encoding='utf-8'?> <form> <fields name='attribs'> <fieldset name='extra-fields' label='TPL_GROUP_EXTRA_FIELDS_LABEL2' description='TPL_GROUP_EXTRA_FIELDS_DESC2' group='extrafields'> <field name='date_of_birth' type='calendar' class='calendar' format='%d-%m-%Y' default='00-00-0000' label='TPL_EX_DATE_OF_BIRTH' description='TPL_EX_DATE_OF_BIRTH_DESC' ></field> </fieldset> </fields> </form>
- add a new category in your back-end for example "test-cat"
- assign extra field "test-fields" to the category
- now make a new article in category "test-cat" title ‘test’
- also put a date in the extra field tab, just by typing the following "okt-2015"
- save the article
- try to reopen it ….
oeps…. error
blanco screen see second attachment.
after changing the date by login on your phpmyadmin to the correct format "01-10-2015"
your article can reopen again.
So. Is it possible to validate the extra fields before saving.
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 18, 2016 at 1:28 am #851028At this moment, the validation like that is not available, you will need to customise to have that feature.
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
January 18, 2016 at 8:49 am #851516that is a pity…
Who could modify it through a plugin. $$Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 19, 2016 at 8:53 am #852738This reply has been marked as private.K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
March 31, 2016 at 9:09 am #907313This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 1, 2016 at 4:16 am #907789If you’re interested in custom services, you can get a quote from here: https://www.joomlart.com/joomlart/custom-service . One of developer can get it done for you.
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)This topic contains 9 replies, has 2 voices, and was last updated by Saguaros 8 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum