Save a custom html in a a table column

Save custom HTML content in a database table column using ChronoForms.

Overview

The issue arises when trying to save custom HTML content from a form into a specific database column, as standard field placeholders don't apply.
Create a text area field in your form and use it as a data source. In the text area's value, combine your desired data and HTML using placeholders, then reference this field name in your Save DB action to insert all content into one column.

Answered
ChronoForms v7
gl globodyne 24 Mar, 2022
Hi I use save db action instead of email and in my save db action I added data source.
โ€‹
For a text field or any other field I used {data:field_value} but for custom HTML what to use ?
โ€‹
Example my field is name and value name
I have added a custom html with unit name html_code_24
โ€‹
Ex:
Table field name Value Value Type Action
name {data:name} Use Value Insert
gl globodyne 24 Mar, 2022
Answer
thank I was able to do it๐Ÿ™‚
gl globodyne 24 Mar, 2022
I have create a text area in the last page with value & place holder then in value field I have put name:{data:name} <br> email:{data:email} then in save db data source I have use my text area field name and all my form content is save in one column of the table ๐Ÿ˜€
Co Colnem 25 Mar, 2022
Hi
โ€‹
You can also set what do you want in a data using php action.๐Ÿ˜‰
gl globodyne 28 Mar, 2022
Hi
โ€‹
Yes will try it, but for me was easy to use the value things๐Ÿ™‚
This topic is locked and no more replies can be posted.