How do I hide unfilled fields in a form?
I know this code <?php echo $form->data['data']; ?> shows the field, but i didn't have success in some PHP code to hide the field.
Can somebody help me?
Hi cesarvelame,
What exactly is the problem? What do you need to hide and where?
Bob
Hi cesarverlame,
Yes, that will work.
But why do you need to hide parts of the form? Just curious, I don't think I've seen that request before.
Bob
GreyHead, I did a small system with Chronoforms.
I have 4 forms:
Content Submission - fields name and content
Content Management - fields name, content, status (pending, rejected and published), link (when published) and motive (when rejected)
Content Status Query - field code (unique id gh)
Content Status View - fields name, status, link and motive ( both if filled by the admin)
People sends content and receives a code that they can query the status in any moment.
In the Status View form I wanted only to show the fields filled by the admin.
Did you understand? My english is crap, I´m sorry.
Hi motivo,
Yes that makes perfect sense, and yes the same kind of PHP will work in the form HTML too.
Bob