Hi, i use CF v5 to edit data from a table viewed in CC. My question is, is it possible, and how, to lock edit data (maybe with a "Display message") if a specific field is equal to a specific value?
Thanks in advice
Hi pocky,
You can do this using JavaScript in the form to set some inputs to 'readonly'. I'm not sure where the Display Message is used though?
Bob
Hi Bob, and thanks for the rpely!!
What i need is a system that, before display/render the form, verify a value of a specific field and, if this value is set to "NO", CC render the form, but, if the value of the specific field is "YES", CC not render the form and display a messagge instead of the form.
Thanks
Matteo
Hi Matteo,
The simplest solution may be to check this in the ChronoForms On Submit event then use an Event Switcher to either show the form or the message.
Bob
Thanks Bob, is there a tutorial or a FAQ where can i found a guide line to do this?
Matteo
Hi, can you help me with the formating of php code reading data?
I use this php code on action Event Switcher:
<?php
$t = ( 'fc[valut_comm]');
if ($t = "YES") {
return "success";
} else {
return "fail";
}
?>
field "valut_comm" is the field that i've to read. I use the format "fc[valut_comm]" to view data in the form and it works!
Some help?
thanks