Multiple cell type: text or date... is it possible?

Tags: #<Tag:0x00007f4527138170>

Hi,

I have a project that needs a column that allows to insert a date and text.

Normal datetime:
image

But this cell should also accept text like this:
image

Is it possible to achieve this?

Thanks!

Hi @jlsuarezcabrera

If a user can put anything to that date column I can propose the beforeValidate hook to return a correct pattern for the date like here https://jsfiddle.net/0zq3k7s9/4/
However, if you need the validator to block some of the values then you would need to have a cell validator with a set of rules that support your requirements.

1 Like

Thank you! That´s what I needed :wink:

Great! I’m glad I could help. Please feel free to open a new ticket when needed, José.