Skip Navigation

[Resolved] Date Repeater field not allowing to select date & Add new field in type beta

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

Problem:
Date Field doesnt work in realted posts.

Solution:
Update Toolset to latest versions.

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 24 replies, has 3 voices.

Last updated by vimalS 6 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#629124
Screenshot_6.png
Screenshot_7.png

I have created repeater field with field type Date. When I am going to select date nothing happens & clicking on add new button not adding new field. I am using beta versions of Types, Views & CRED Plugin.

#629143

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Vimal

I expect you will see errors in your browser console if you open it.

Could you please check and let me know what you find?

By the way, I note that you have Access installed. It is not tested to be compatible with the betas and you should disable it for the time being.

Access compatibility will be added fairly soon.

#629154
Screenshot_8.png

Hi Nigel,

I have deactivated Access plugin still I see the issue.
See attached screenshot for the console.

Thanks!!

#629539

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Vimal

I see that you are using the Toolset Starter Theme so I set up my local test site for the betas to use this but was still unable to reproduce the problem.

It looks like the 404 error for the file buttons.print.min.js which is missing is causing the subsequent errors that are the reason your date field isn't working as expected.

Do you know what is requesting that? I did a search for that filename in the Toolset plugins and theme and couldn't find it.

#629911

The file buttons.print.min.js is for my custom datatable.

#630031

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Can you switch theme to twentyseventeen and see if the same error appears?

#630498

Hi Nigel,

I have fixed 404 error for the file buttons.print.min.js but, Issue is still there.
Can you switch theme to twentyseventeen and see if the same error appears?
Ans : Yes, I have switched theme but still error is exist.

Thanks!

#630991

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

In that case I think I should get a copy of your site for testing, if that's possible.

https://toolset.com/faq/provide-supporters-copy-site/

I'll mark your next reply as private to get details from you.

#631334

I can provide you ftp and wp admin details
Please change my reply so I can provide you details

#631412

The date field as you have set it up in the ScreenShot you share works fine with the latest beta releases.

This is most likely due to another Plugin.

Please find out which plugin conflicts by disabling all but Toolset and switching to a native WordPress Theme.
Then, the date field should work.

After, you can re-enable the Plugins to see which is the one causing the issue.
Please share the name and download link of that plugin with me afterwards.

Custom code cannot be involved in the debugging process at any time.

I suspect Gravity Forms, Intuitive Custom Post Order or custom code is causing this problem on your site.

If the issue persists even after above steps please send me a copy of that site:
https://toolset.com/faq/provide-supporters-copy-site/

I enabled the private reply needed to share the link to it with me privately.

#631840

Let me outline the steps I took so anyone with similar problems can follow these to pinpoint issue faster.

I do not know where in all the Custom Fields that Date Field is.
Nor, on what post type.

I outlined the steps that are to perform in order to get to the bottom of this, but I cannot perform this since I do not know where to look for the issue.

I did spend a lot of time searching for all the Field Groups for the Field shown in the Screenshot but I found this one instead:
unlock-date-time-evaluation.
But that field is shown only if Has timelock = 1.
In my local test with the beta Types version, this condition works with AJAX and smoothly.
I see in the beta this is broken. You need to save the post to have it working.

In that field finally, I was able to see the issue.
Locally, even if I add the conditions as you did, it still works fine.
I deactivated all plugins and the Theme on your duplicate, and this still breaks.

Finally, I saw on your install that this happens only on CPT's, not on the native Post Type.
Still, in my local, this also works on CPT's.

On your duplicator when I create a new CPT, then it works as well.

So we can summarize this issue as follows:
- any Date Field in any Custom Post Type does not enable you to add a date. Even the calendar icon is missing.
- it works just fine on Posts and Pages and new Custom Post Types.

I saw that the only difference between new Custom Post Types is that your post types are in relationships.

Hence I tried to confirm locally that a Date field on a Post type in a relation fails, but was not able to do so, as well that works fine locally.

On your install, I can confirm that as soon you remove any relationship GUI (delete the relationships) the issue is solved.
It must be due to some field that is added to those related Post types and then through the relationship GUI it affects the Date Field.
In fact, if I deactivate all custom fields but the date field and still use relationships on your site, I can make it work as well.

The question is to find the culprit other Custom Field that breaks the Date Field.

And here I was able to replicate the problem.

- If there is more than one Date field, and one of them is shown conditionally, and you have relationships on the same post then the calendar is not initialized until all the conditions are met.
Since you have Date Fields both on the current and the related posts, and both can be conditionally shown, the date picker seems to never work, even though it should once you activate all conditions (so the picker shows) on all posts related.
Of course, this is not what we expect you to do.

Conditions should work just fine, hence I reported this bug.

Thank you for your patience!

#631869

Thank you Beda,
I appreciate your hard work and will wait for solution.

#632355

This will be fixed in the upcoming next release.

For now, there is no patch or workaround.

#671594

Any update on this?

#696992