Skip Navigation

[Resuelto] View list with checkbox for select rows and update selected rows submit broken

This support ticket is created hace 4 años, 5 meses. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 4 respuestas, has 2 mensajes.

Last updated by mikeB-14 hace 4 años, 5 meses.

Assisted by: Minesh.

Autor
Mensajes
#1383933

Hi Guys
On my last ref #1357745 this was resolved , but since the update of toolset and wordpress to 5.3 it seems to have broken my custom code you help me .

The view allowed to select rows to then past the post_ids to a update form and bulk update the selected row field and push out a notification to all selected.

1. Firstly select all got broken

$("#selectAll").click(function(){
$("input[type=checkbox]").prop('checked', $(this).prop('checked'));

});

I have to change that to

var $ = jQuery;
$("#selectAll").click(function(){
$("input[type=checkbox]").prop('checked', $(this).prop('checked'));

});
That works

2. The bulk update and email notification has broken well
It updates the field for all rows selected but only trigger the email to one.
This was working before where it sent to email to all selected.

Thanks
Tony

#1384137

Minesh
Supporter

Languages: Inglés (English )

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

Hello. Thank you for contacting the Toolset support.

1. Firstly select all got broken

$("#selectAll").click(function(){
$("input[type=checkbox]").prop('checked', $(this).prop('checked'));

});

I have to change that to

var $ = jQuery;
$("#selectAll").click(function(){
$("input[type=checkbox]").prop('checked', $(this).prop('checked'));

});
====>
If I'm not wrong you are talkin about the following view:
- hidden link

I've changed the JS code as given under so you will not have any issues in the future, you should always wrap such custom JS code with proper JS event hook and to eliminate such JS conflicts:

jQuery(document).ready(function($){

$("#selectAll").click(function(){
       $("input[type=checkbox]").prop('checked', $(this).prop('checked'));
});

});

2. The bulk update and email notification has broken well
It updates the field for all rows selected but only trigger the email to one.
This was working before where it sent to email to all selected.
====>
I do not understand where I can see its broken or what steps I should check. Can you please share detailed information that will help me to understand your issue first as well as to guide you in the right direction. A few screenshots will also help. What if the problem URL and where you setup the bulk notification and whats not working exactly.

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

#1384183
step5.JPG
step4.JPG
step3.JPG
step2.JPG
step1.JPG

Hi Minesh

1. Select Home from Menu and then Evalualtion System
2. Then Select 31/05/2019 and Search your for events
3. You will see Wisteria
4. Click Task Link
5. Click Bulk Email Request Delegates
6. You will see the 2 delegate select both
7. Before you do that you could edit or add a delegate to match a email address you can get the notifications
8. You can have the same email address on all of them ust for testing it does send notification to all.
9. when you click the dupdate button
10. you will see this update results form page
11. Tick the email Request button and the send email request button to delegates
12. This will then update the email request flag and trigger the notification to each selected delegate.
Hope this helps
Tony

#1385647

Minesh
Supporter

Languages: Inglés (English )

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

Thanks for sharing all the required information.

As per our support policy, we entertain only one question per ticket. I've split the ticket for your email notification issue and I'll handle that with the following ticket:
=> https://toolset.com/forums/topic/split-view-list-with-checkbox-for-select-rows-and-update-selected-rows-submit-broken-emails-not-working/

Please feel free to close this ticket.

#1385871

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.