jfquestiaux
Well-Known Member
I have a form with 4 groups.
In the first group, I have a googlemap element - named "geocode" - that I wish to hide in the form view but not in the detailed view.
There used to be a code in the Wiki (for fabrik 2) to do that but I can't find it anymore (the page says "use the following code", but the code is gone). So I cloned the default template and addes this in the default_group.php file
This works fine if all the groups are on the same page or even with the tab template.
But if I put the page break to have a multi-page form (which is what I need), I am stuck on page 1 (I have the "validate" wheel, then I am stuck on page 1).
It might be normal behavior but then how can I hide this element on the multi-page form?
In the first group, I have a googlemap element - named "geocode" - that I wish to hide in the form view but not in the detailed view.
There used to be a code in the Wiki (for fabrik 2) to do that but I can't find it anymore (the page says "use the following code", but the code is gone). So I cloned the default template and addes this in the default_group.php file
Code:
<?php foreach ($this->elements as $element) {
if( $element->id != 'artists_details___geocode' ) {
?>
... the default code ...
} ?>
This works fine if all the groups are on the same page or even with the tab template.
But if I put the page break to have a multi-page form (which is what I need), I am stuck on page 1 (I have the "validate" wheel, then I am stuck on page 1).
It might be normal behavior but then how can I hide this element on the multi-page form?