Site logo

Archived topic

Display different blocks depending on the condition

3 replies · Started by Bernhard on September 16, 2022

Viewing posts 1–4 of 4

Hello,
on this page I have defined in the (Title2) online reservation two container with reservation forms.
If it is not too complicate, I would like to insert a switch between year 2022 and year 2023, where in 2022 only the upper container with the form 3 is shown and in 2023 the lower container with the form 8.

The containers are

<!-- wp:generateblocks/container {"uniqueId":"f7624fa5","paddingTop":"5","paddingRight":"5","paddingBottom":"5","paddingLeft":"5","paddingSyncUnits":true,"borderSizeTop":"5","borderSizeRight":"5","borderSizeBottom":"5","borderSizeLeft":"5","borderRadiusTopRight":"5","borderRadiusBottomRight":"5","borderRadiusBottomLeft":"5","borderRadiusTopLeft":"5","borderColor":"#931b31","isDynamic":true,"blockVersion":2} -->
<!-- wp:shortcode -->
[fluentform id="3"]
<!-- /wp:shortcode -->
<!-- /wp:generateblocks/container -->

<!-- wp:generateblocks/container {"uniqueId":"5a360624","paddingTop":"5","paddingRight":"5","paddingBottom":"5","paddingLeft":"5","paddingSyncUnits":true,"borderSizeTop":"5","borderSizeRight":"5","borderSizeBottom":"5","borderSizeLeft":"5","borderRadiusTopRight":"5","borderRadiusBottomRight":"5","borderRadiusBottomLeft":"5","borderRadiusTopLeft":"5","borderColor":"#931b31","isDynamic":true,"blockVersion":2} -->
<!-- wp:shortcode -->
[fluentform id="8"]
<!-- /wp:shortcode -->
<!-- /wp:generateblocks/container -->

Is there a simple way to do this? Thank you

Hi Bernhard,

Unfortunately there is no simply way to do this and would require a custom javascript solition.

Thanks for your understanding.

OK, no problem. I will then try the accordion block when it will be released.

Thanks :)

This archived topic is closed to new replies.