Skip Navigation

[Resolved] Split: input – Default Date – old date not working

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

Problem:
Split: input – Default Date - old date not working

Solution:
This will require custom JS code to be adjusted within your form's JS section.

Relevant Documentation:

This support ticket is created 4 years, 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by hansooH 4 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1783623

I found a new error. Only two days of attendance are saved. If you enter the third attendance date, the oldest attendance date is deleted, and only the second of the latest attendance dates remains in the record.

#1783627

Thank you Minesh~~ !!!

#1783631

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share example what exactly not working and the steps I will require to follow.

Please share admin access as well as the another user access details for frontend so that I can see the results on frontend.

Please let me know your expected results.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1783683

I guess I should click the "+ add new" button on the input form
Should the user press the "+add new" button first, the Today date should be entered as the default date in the blank field?
This is only my guess

#1784141

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry but on this page: hidden link

I can see the last date field has the default value of current (today's date). Please check the following screenshot:
=> hidden link

Am I missing anything here?

#1784163

hidden link
This page is NO problem it's fine. This page display only two dates. this is correct.

hidden link
But This page, all dates should be display on this page. Manage can check everyone's attendance dates here.

Thanks,

#1784181

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

on this page: hidden link
- As your requirement was to only display two date picker instance only, we remove the other instances. So, when you update the form, it will save only two instances of date.

Do you mean that on above page, you do not want to remove the date instances but keep it within the form and only display the two instances and hide the other instances so that when user update the form, it will save ALL the date instances?

#1784221

You are totally right. I was lacking in explanation. This is my fault. I'm very sorry.

#1784293

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now and see if you see it working.

Now, all date instances should get saved.

#1784315

My issue is resolved now. Thank you! Minesh you have very great job and Many thank. 🙂