albertotactik
Member
hello,
I use a UPSERT plugin ... which works very well for me, to modify a value of a table called "X"
It would be possible to add an “IF” in the “condition” section of the plugin… so that it modifies the value, only when a field in the “Y” table that I am editing is equal to the “cancel” value
I have reviewed several "upsert topics" of the forum and and I do not quite understand it ...
I hope I explained ...
Thanks in advance…
http://fabrikar.com/forums/index.php?wiki/php-form-plugin/
· Conditionally updating a form's value on Save(top)
Lets say we want to update the field 'sport's value to 'badminton' when the field name's value is 'rob'. To do this the php would be:
PHP:
$name = $formModel->formData['tablename___name'];
if ($name === 'rob')
{
$formModel->updateFormData('tablename___sport', 'badminton', true);
}
I use a UPSERT plugin ... which works very well for me, to modify a value of a table called "X"
It would be possible to add an “IF” in the “condition” section of the plugin… so that it modifies the value, only when a field in the “Y” table that I am editing is equal to the “cancel” value
I have reviewed several "upsert topics" of the forum and and I do not quite understand it ...
I hope I explained ...
Thanks in advance…
http://fabrikar.com/forums/index.php?wiki/php-form-plugin/
· Conditionally updating a form's value on Save(top)
Lets say we want to update the field 'sport's value to 'badminton' when the field name's value is 'rob'. To do this the php would be:
PHP:
$name = $formModel->formData['tablename___name'];
if ($name === 'rob')
{
$formModel->updateFormData('tablename___sport', 'badminton', true);
}