Skip Navigation

[Resolved] How to show a select generic field in email?

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

Last updated by himanshuS 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2530681

I am using a comma separated view to create a dynamic dropdown for generic select field.

The generic select field is for job IDs {'Key': 'Job-name','value':'job-id'}.

I would like to show the key of the selected field in the email.

How can I do that?

#2531065

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

You can use the Toolset form's hook "cred_body_notification_codes" to create custom placeholder.

To get value of generic field from $_REQUEST global variable as you can see with the example given with the following reference ticket reply:
- https://toolset.com/forums/topic/notification-with-generic-field/#post-380103

You can see the example with the following official Doc and I hope that will help you to resolve your issue:
- https://toolset.com/documentation/programmer-reference/forms/how-to-use-custom-placeholders-in-cred-notifications/#using-custom-placeholders

#2531145

My issue is resolved now. Thank you!