Skip Navigation

[Resolved] How can we modify custom field values before records are loaded using View?

This support ticket is created 3 years, 11 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 1 reply, has 2 voices.

Last updated by Minesh 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1611249

Tell us what you are trying to do?
- We use Toolset View to display a list of records of a custom type.
- We would like to modify values of a custom field of the records based on values returned from an external web service call (specifically Salesforce API) before the records are shown in the UI.
- Is there a Toolset hook for this purpose?

Is there any documentation that you are following?
- NA.

Is there a similar example that we can see?
- NA

#1612241

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Using Views, you can display the custom field value using Types shortcode and it will grab the value from the database. There is no specific hook available but you might want to check with the View's filter hook: wpv-display-post
=> https://toolset.com/documentation/programmer-reference/views-filters/#wpv-display-post

It will not work on the specific custom field but for the single post loop iteration.

As you want to display the values returned from the API there is no other such feature exists.

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