Insert date in the upload fields

6 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2023   (RSS)

By andreasml - April 18, 2023

Hi

Is it possible to add a date for an upload field together with title, caption etc?

Regards, 

Andreas Lazaris

By Dave - April 20, 2023

Hi Andreas,

Unfortunately, there isn't a built-in feature to display a date field alongside the title, caption, etc. However, here's some alternatives:

  1. Modify the upload field caption to prompt users for the correct format, such as: Date (YYYY-MM-DD)
  2. Query the 'createdDate' column in the uploads table
  3. Develop a custom plugin to achieve this functionality

Feel free to reach out if you have any other questions or need further assistance.

Best regards,

Dave Edis - Senior Developer
interactivetools.com

By Dave - April 20, 2023

Hi Andreas, 

It depends on what you're trying to accomplish.  What's the goal or outcome you're wanting to create?  What's the problem you're trying to solve? 

Dave Edis - Senior Developer
interactivetools.com

By andreasml - April 20, 2023

Hi Dave, 

I just want to save the date of creation of the uploaded file, as you describe in your first message. 

Andreas

By Dave - April 20, 2023

Hi Andreas, 

Ok, sure.  So you what you can do is just write some custom code on the viewer page to display that.  You'd just have to do another query.  If you can share your viewer code that loads the records I can show you how to add the createdDate

Dave Edis - Senior Developer
interactivetools.com