Skip Navigation

[Resolved] CPT Fields Empty on Toolset Email Notification (for some users)

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 5 replies, has 3 voices.

Last updated by Minesh 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2518123

Tell us what you are trying to do?
Send an automatic notification that includes some fields from the Annual Permit custom post type when a Post Form is submitted. When submitting the form myself all details are included (as a new users or logged in user). When (some/many) other users submit the form, the fields in the email return now values.

Is there any documentation that you are following?
Consulted available documents.

Is there a similar example that we can see?

What is the link to your site?
hidden link

#2518743

Nigel
Supporter

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

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

The notifications are sent and received, but the field values are empty?

This is a form to publish an Annual Permit post, which as part of a Forms Commerce workflow that goes via WC to charge users to "publish" that Annual Permit post, would that be right?

What is the trigger for sending the notification?

Any custom code involved in the workflow?

Do the Annual Permit posts published by the form contain the expected data, and it is only missing from the notification email?

Is this a new problem?

#2519161

The notifications are sent and received, but the field values are empty? Correct.

This is a form to publish an Annual Permit post, which as part of a Forms Commerce workflow that goes via WC to charge users to "publish" that Annual Permit post, would that be right? Yes, that is correct.

What is the trigger for sending the notification? When post status changes to processing (which is the action the form is set to complete when form is submitted).

Any custom code involved in the workflow? No.

Do the Annual Permit posts published by the form contain the expected data, and it is only missing from the notification email? Yes it does. It is only the notification email that does not contain the data.

Is this a new problem? Been struggling with this for a while, but have not been able to isolate the issue.

#2519423

Minesh
Supporter

Languages: English (English )

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

As I understand that the field display empty values with email notification when you submit the form - correct? if yes: Can you please share the fields you added to email notification. (just copy/paste what content you added to your email notification.)

In addition to that - please share screeshot of your edit form page and email notification settings.

#2519653
Screenshot 2022-12-20 181455.jpg
Screenshot 2022-12-20 181127.jpg

Please see below, Minesh:

Name and Surname: [types field='md-name'][/types] [types field='md-surname'][/types]
ID Number: [types field='md-id-number' format='FIELD_VALUE'][/types]
Membership Type: [types field='membership-type'][/types]
E-mail: [types field='md-e-mail-address'][/types]
Medical Aid Name: [types field='md-medical-aid-name'][/types]
Medical Aid Number: [types field='md-medical-aid-number' format='FIELD_VALUE'][/types]
Collection Point: [types field='collection-point'][/types]
Terms & Conditions: [types field='terms-and-conditions'][/types]

Let me know if there is anything else?

#2519687

Minesh
Supporter

Languages: English (English )

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

Could you please try to add the item='%%POST_ID%%' attribute to all your fields and check.

For example:

Name and Surname: [types field='md-name' item='%%POST_ID%%'][/types] [types field='md-surname' item='%%POST_ID%%'][/types]
ID Number: [types field='md-id-number' format='FIELD_VALUE' item='%%POST_ID%%'][/types]
Membership Type: [types field='membership-type' item='%%POST_ID%%'][/types]
E-mail: [types field='md-e-mail-address' item='%%POST_ID%%'][/types]
Medical Aid Name: [types field='md-medical-aid-name' item='%%POST_ID%%'][/types]
Medical Aid Number: [types field='md-medical-aid-number' format='FIELD_VALUE' item='%%POST_ID%%'][/types]
Collection Point: [types field='collection-point' item='%%POST_ID%%'][/types]
Terms & Conditions: [types field='terms-and-conditions' item='%%POST_ID%%'][/types]

Does that helps?