Hi everyone,
In CF5 I put the following code to the 'Start Code' of a container:
I can achieve similar effect by putting the following code in a Custom Action of the form:
Any suggestion?
Cheers
Bob
In CF5 I put the following code to the 'Start Code' of a container:
<?php if (($form->data['ordered-doc']) != 'Book') echo 'data-load-state="hidden"';?>This made the container hidden in a form when the condition was met. I want to achieve the same in CF6. Where can I insert the code and what should it be ?
I can achieve similar effect by putting the following code in a Custom Action of the form:
if (($this->data['ordered-doc']) != 'Book') echo '<style>.ui.adjoining3.segment{display:none}</style>';However, this latter solution will display the code inside the page source, which I want to avoid.
Any suggestion?
Cheers
Bob