Hi Stephanie,
Here's version 1 which isn't quite what you want. It's a word censor. Add a Custom Code action to the On Submit event with this code in it:
<?php
$ban_array = array(
'xxx' => '***',
'coach => '*##*',
'gucci' => '*!!*',
'thomas sabo' => ''
);
$input_array = array(
'input_textarea_0'
);
foreach ( $input_array as $in ) {
foreach ( $ban_array as $k => $v ) {
$form->data[$in] = str_ireplace($k, $v, $form->data[$in]);
}
}
?>
Edit the $ban_array to include the list of banned words and replacements for them and add the names of the inputs you want to check to the $input_array.
The result is that this entry in the text area:
Vivamus tempor eros sit amet nulla xxx egestas. Fusce odio ante, gucci sed coach xxx, interdum sed leo. Aenean sed lacus quam, convallis porttitor massa. Nullam congue nunc massa? Nam urna mi, adipiscing et rhoncus gucci, consectetur in leo. Vestibulum ac coach eu justo interdum pulvinar thomas sabo sed xxx.
becomes this in the email
Vivamus tempor eros sit amet nulla *** egestas. Fusce odio ante, *!!* sed *##* ***, interdum sed leo. Aenean sed lacus quam, convallis porttitor massa. Nullam congue nunc massa? Nam urna mi, adipiscing et rhoncus *!!*, consectetur in leo. Vestibulum ac *##* eu justo interdum pulvinar sed ***.
Bob