Thread tagged as: Question, Api, Field-Types

Custom FieldType Quuestion


I have created many FieldTypes for Perch Admin, but I really need to know if you can point me in the right direction for creating a custom FieldType for a Public Form.

Currently, to achieve this in my runtime.php I am capturing the html return from $Template->render() and doing a str_replace() then passing the new html to $Template->apply_runtime_post_processing($html, $details)

It's working since my custom fieldtype is just a "select" field with many options.

Please tell me if there is a better (proper) way to do this. I have studied many of Perch's lib files and I am just stumped.

Thanks for any advice.

Robert Ketter

Robert Ketter 103 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Hi Robert. Public forms don't have field types.