Sep 23rd, 2009, 6:26 PM
Hey Invectus,
Sure, no problem.
There's a couple of ways you could do it.
1. JS approach: On form submit, right before the content is actually submitted, you could empty the fields
2. Use this module and add rules like so:
That's pretty much it! You would, of course, have to set up a pre-parser rule for your particular form and add the PHP above as the content. But there's no reason why it wouldn't work!
Hope this helps -
Ben
Sure, no problem.
There's a couple of ways you could do it.
1. JS approach: On form submit, right before the content is actually submitted, you could empty the fields
2. Use this module and add rules like so:
PHP Code:
if ($_POST["my_field"] == "default value")
$_POST["my_field"] = "";
if ($_POST["my_field2"] == "another default value")
$_POST["my_field2"] = "";
That's pretty much it! You would, of course, have to set up a pre-parser rule for your particular form and add the PHP above as the content. But there's no reason why it wouldn't work!
Hope this helps -
Ben