This topic is locked
[SOLVED]

 Rich Text Editor - auto populate.

2/29/2012 8:12:31 AM
PHPRunner General questions
P
prattster1874 author

Does anyone know if it is possible to auto populate a Rich Text Editor field with a template.
I would like to automatically include an HTML table in the rich text field that the user has to fill in when adding a new record?
I am using the Innova studio plugin on the latest build of php runner.
Thanks in advance for any advice.

C
cgphp 2/29/2012

In the "Process record values" event of the add page enter the following code:

$values['rich_text_field_name'] = "<table border='1'><thead><tr><th>Col</th></tr></thead><tbody><tr><td>body</td></tr></tbody></table>";
P
prattster1874 author 2/29/2012



In the "Process record values" event of the add page enter the following code:

$values['rich_text_field_name'] = "<table border='1'><thead><tr><th>Col</th></tr></thead><tbody><tr><td>body</td></tr></tbody></table>";



Thank you so much - obvious when you think about it :-)