Skip Navigation

[Resolved] Convert custom post field to a text file and then show the link to this file

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 7 years, 5 months ago.

Assisted by: Beda.

Author
Posts
#541007

I have a custom field as multi line text field.
When user submit the form, CRED will create a unique text file from this field(text file contains the content from the field).

Then Toolset Views will show this custom field as a link to the new file(filename.txt).
I expected to see: custom field name

How can this be achieved?

Thanks very much.

#541785

CRED will not allow you to create .txt files, this is something you can do with Custom Codes.

Perhaps you can hook your Custom Code into the CRED API:
https://toolset.com/documentation/programmer-reference/cred-api/

These CRED API hooks allow you to run your Custom Code on any state of the Form (submit, success, and so on)

Then, once you know where the .txt file is stored, you can update a Custom Field (URL, for example) and display this Field in Views.

The forum ‘Types Community Support’ is closed to new topics and replies.