Forums

Change input form.

mudshark 22 Apr, 2012
My question is simple. After submitting a form, i want to change the data input (e.g. Change CAPITAL data to lowercase) before it is saved in the database. I tried the name of the input fields but that doesn't change anything. I tried to use the post array, but i don't get it work. Because i'm a noob with js/php. Must be simple. Who can help me out?

Tnx.
GreyHead 22 Apr, 2012
Hi mudshark,

Drag a Custom Code action into the On Submit event and move it up before the DB Save action. Add code like this - replacing the input name:
<?php
$form->data['input_name'] = strtolower($form->data['input_name']);
?>


Bob
This topic is locked and no more replies can be posted.