Skip Navigation

[Resolved] Making a href url smaller for email notification

This support ticket is created 5 years, 9 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 12 replies, has 2 voices.

Last updated by Shane 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1224648

Hi
I have a URL that is generated when a field changes, but i think the URL is too long in raw form.

hidden link field='delegate-grp-first-name'][/types] [types field='delegate-grp-last-name'][/types]&crn=[types field='event_task' item='$current_page'][/types]&cd=[types field='event_stdstartdate' item='$current_page' style='text' format='d/m/Y'][/types]&ct=[types field='event_employee' item='$current_page'][/types]&cln=[types field='client-name' item='$current_page'][/types]&cidn=[types field='event_idx_chantier' format='FIELD_VALUE' item='$current_page'][/types ]&de=[types field='delegate-grp-email'][/types]" target="_blank">Click for Eval Survey

It misses out the last param de=[types field='delegate-grp-email'][/types]
I have a field checkbox which i want to trigger the email when the boxed changes from not ticked to tick, how do I test it?
Cant' get it working on

Also if tick the box on the form 'Submit this form without reloading the page (use AJAX)' i do not get the email notification, when i untick it i don get the notifications .

Tony

#1224744

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Thank you for contacting our support forum.

Does this generate the correct link at the end? I'm assuming that this is a yes since you mentioned that only DE param is missing.

I believe as you say the URL string is too long. The notification should get triggered even if you are using AJAX submit.

But what I want is a confirmation that the link is Generated correctly with just the DE param missing.

Looking forward to hearing from you soon.

Thanks,
Shane

#1224756

Yes Everything is great for the link
This was generated from the email notification
hidden link

Unfortunately, our staging site shuts down overnight, will be back up in the morning 7am UK time.

Funny enough it does appear to be the last param that does not get resolved.

This is one where i added the last part manually in the web browser.

hidden link

Hope this helps
Tony

#1224768

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

From what i've been reading it seems that wordpress is actually cutting the long url's.

Could you try using this plugin here
https://wordpress.org/plugins/longer-permalinks/

Let me know if you're able to set it so that you can get a longer url.

Thanks
Shane

#1225118
#1225202

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Happy to see you were able to resolve this issue.

I tested this exact scenario with the AJAX and the checkbox field to trigger the notification and it worked fine on my end.

Would you mind allowing me to have admin access to the site as well as a link to the page where the form is so that I can test it on your end to see what is happening.

Perhaps I was missing something when I tried to replicate.

Looking forward to hearing from you soon.

Thanks,
Shane

#1225911

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

I was able to replicate the issue locally here because i was abetter able to understand the context.

Fortunately this issue has been escalated to our development team previously so they are aware of it.

I would recommend keeping an eye on this entry below for the latest updates on this issue.
https://toolset.com/errata/inconsistent-behavior-when-submitting-an-editing-form-in-a-view-listing-posts/

Thanks,
Shane

#1225987

Ok I will keep a lookout for that. need urgently.

But is it possible to have an edit list where you tick the rows you want to update selected the field you want to update and then have a submit all button which will update all those rows selected and trigger the email notifications?

#1226055

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Unfortunately not.

The reason is because we have to remember that each of these are individual forms. So creating a submit all button wouldn't work since each form is its own self contained instance.

This issue needs to be fixed on our end. Right now I would recommend using the form without the AJAX as i know this will cause some inconvenience to you, however i've added your ticket to the issues tracker as well.

I also see where there is some urgency being mentioned to our development team for a fix for this.

Thanks,
Shane

#1226275
#1226452

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Yes it would work, however there is a bug with multiple ajax submit forms in a view loop, so unless this is resolved by our team then I do not suspect this method to work as intended.

What the code is doing is essentially mimicking the click action that you would normally do for each individual submit button.

Thanks,
Shane

#1226460

I think I found that bug as well.

It does send the notify to the number of rows shown, but the information is all based on the first row.

🙁

#1226467

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mike,

Yep that is exactly what is going to happen because of the bug with the view loop.

I must apologize for not being able to help better but our development team hasn't provided a workaround for this issue.

Right now we just have to wait for a fix to be applied.

In the meantime I know this might be inconvenient for you but disabling AJAX on the forms is the best way forward right now.

Thanks,
Shane