some simply help with insert :)

cyber81 13 Jul, 2015
Hello! I want to populate a field of the table, when another field of the some table as a value != from zero.

I have done a designer-event with "set dynamic value" that call an setup-event with a custom code.
In setup-event I read the table with id and ok field with this option: <?php return array('id' => $form->data['id']); ?> then I have done a custom code ON FOUND with <?php $form->data["ok"] = 'OK'; ?>

but don't work. Some help?๐Ÿ™‚

thank you
GreyHead 13 Jul, 2015
Hi cyber81,

I'm finding it hard to understand what you are trying to do here - please explain in a little more detail

When exactly is this code running - is it after the form submits? Or is it when the user changes something in the browser?

Bob
cyber81 13 Jul, 2015
Hello! The code is running first the form submit, simply when an user insert a value in field.
When this field "x" is populated I would insert ad automatic OK in a field "y".
GreyHead 13 Jul, 2015
Hi cyber81,

Sorry, I'm still confused - maybe the meaning is getting lost in translation :-(

Is this value set *after* the form is submitted?

Bob
cyber81 13 Jul, 2015
No, before form submit๐Ÿ™‚
I want to populate the field 'X' with the value 'OK' when insert a value into Y field; before sending.
I don't know if the above code is right for me
This topic is locked and no more replies can be posted.