Skip Navigation

[Resolved] Datepicker Fails to Insert Date in Frontend Form for Author Role

This thread is resolved. Here is a description of the problem and solution.

Problem:

As an author, I am unable to use the datepicker in a front-end form for the "autoresponder" post type. Although I can open the datepicker, selecting a date does not insert it into the field, and a console error appears. However, this works fine when logged in as an admin.

Solution:

After testing on a minimal installation, I identified a function in a custom plugin that was causing the issue by redirecting authors to the front end when they accessed the backend. Disabling this function resolved the problem, allowing the datepicker to work as expected for authors.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 2 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2780587
Bildschirmfoto 2024-11-02 um 09.30.53.png

As an author, I can create and edit data in a frontend form for a post type called "autoresponder." Although I can click on the datepicker icon and select a date, the selected date is not inserted into the date field, and an error appears in the console (screenshot attached).

However, when logged in as an Admin, the datepicker in the same form functions correctly and inserts the date as expected.

I have author-level access for this functionality.

Here is the link to the overview page for authors' autoresponders: hidden link. At the end of the list, there is a button to add an autoresponder.

#2781084

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Unfortunately, I can not access that page as I am not logged in and the login info is not showing for me for some reason.

But I suggest first that you check and see if the same thing happens on a minimal installation:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset Types, Forms and Blocks.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Also please provide the login information for the admin and the other user you use. I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

#2781165

Thank you so much! Your tip worked perfectly. I discovered a function in a custom plugin that redirects authors to the frontend when they try to access the backend. I disabled this function, and now everything works smoothly.