Forums

Lock edit data from CC to CF v5

pocky 03 Jul, 2015
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
GreyHead 04 Jul, 2015
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
pocky 06 Jul, 2015
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
GreyHead 07 Jul, 2015
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
pocky 07 Jul, 2015
Thanks Bob, is there a tutorial or a FAQ where can i found a guide line to do this?

Matteo
pocky 09 Jul, 2015
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
This topic is locked and no more replies can be posted.