PricingBlog

Visually work with multiple elements on one page

  • jubilant_courgette_93644-1274697754823757874

    Dov

    1 year ago

    Hi

    Is there a video to explain how to work with elements that can be conditionally displayed on a page.

    For example if I have 2 buttons that display separate forms but placed in the same potion on the page. How would I be able to see them?
  • lucasg-1274773762918842398

    Lucas G

    1 year ago

    The easiest way would be to have each button control a variable that dictates whether the form is shown or not
  • So on the form you set the show/hide condition (true/false) with a variable
  • Let's say, 'showForm' for example
  • Clicking the button flips the variable 'showForm' between true and false
  • Showing and hiding the form
  • Does that make sense
  • You could also then go a step further and use the same variable for both forms so that they never show at the same time
  • For example, using a Not node in the show/hide condition of one of the forms
  • jubilant_courgette_93644-1274815730667487263

    Dov

    1 year ago

    Thanks. I was working on that assumption - to use a variable to control visibility. My question was more to do with being able to see them in the editor. In the image below I have 2 components but they cannot be seen in the editor.
    1274815730461708490-image.png
  • lucasg-1274825925569020107

    Lucas G

    1 year ago

    Remove the condition or leave it as true while building