1. [email protected]
  2. Support
  3. Tuesday, August 27 2019, 09:31 PM
hello,
i have a website running easy profile and i need to change the ui representation for a birthday date field.
When the site was set up i decided to use the default date picker style to select the year/day/month with a mouse.
I would like to change this to a very simple field where the user enters his dob manually as text/numbers.
How can this be done without changing the current database content?
The field should still hold the values as DATE type in the Database.
B.R. Jan
admin Accepted Answer
Admin
Hi and sorry for late reply.

Unfortunately this is not possible natively.
To do this you need to change field type from database with a tool like PhpMyAdmin (normally provided by all hosting companies): in the table #__jsn_fields these is the list of fields, you need to change in the field row the column called "type" from "date" to "text".

Note: the field need to allow only format like "YYYY-MM-DD" (this is SQL format). Therefore you need to limit values by using "Format Allowed" parameter and the correct regex expression
  1. more than a month ago
  2. Support
  3. # 1
[email protected] Accepted Answer
Pro
Hello,

thank you for the answer,
what will happen if i change the database field manually?
will the UI representation in the forms change to a textfield automatically or do i have to make adjustments there as well?

b.r. Jan
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
if you change the type from Database, basically the field will be managed like textfield, so it will change automatically.
  1. more than a month ago
  2. Support
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.