ansible / ansible-ui

The UIs for Ansible Projects such as AWX, EDA, and HUB.
https://ansible.github.io/ansible-ui/
Apache License 2.0
75 stars 65 forks source link

Suggestion for Adding Calendar Input in Extra Survey #3074

Open sudhann92 opened 1 month ago

sudhann92 commented 1 month ago

Hi Team,

I have a suggestion regarding the extra survey. Would it be possible to add a calendar option for the Answer type? This would allow users to easily select and provide a date in the correct format.

I've developed an automation where users input a date value, which I need to convert to a specific format before sending it to the database, as the DB accepts only a particular format. However, multiple users are using this automation, and they often input the date in various formats such as dd.mm.yyyy, dd/mm/yyyy, and dd-mm-yyyy, mm.dd.yyyy, mm-dd-yyyy, mm/dd/yyyy etc. which makes it challenging to convert the date to the required format (dd-mm-yyyy). Even using the to_datetime filter doesn’t resolve the issue due to the inconsistency in date formats.

To handle this, I created a custom module to manage the situation, but I believe having a calendar option for date input would ensure a consistent format for everyone.

If we add this new feature in new Ansible Automation platform release that would more helpful for many users.

Thanks & Regards Sudhan