Layout of my page

Hello,

I’m still new on Weweb and struggle a bit :smiley:

  1. I would give a title above each of my 3 columns so that the sport name, e.g. Golf does not repeat every single time
  2. Then, I want that when an option is selected (i.e. click on a button) then entire box to be coloured (e.g. dark blue)

Can you please help me? Thank you :pray:

Hi @MrUnfreeze :wave:

I’m assuming the golf clubs, golf balls, football jersey, etc. is coming from a collection and not “hard-coded” on the page.

If that’s the case, then you’ll find this video helpful to group similar items together in answer to question 1.

For your second question, I’d suggest taking a look at our user docs on how to create custom states.

Does that help?

Hi @Joyce

Thank you for your answer.

I decided to use checkboxes to select multiple elements, based on the ticketing example you provided on the academy.

Each checkbox has its own variable that = “true” when clicked and “false” when it’s not.

What I would like to achieve is that when the user clicks on the top right on “Submit”, only all the options selected are visible on a page where more information can be provided.

I thought that I could create a workflow from the submit button which collects all the variables selected on the page from the user but did not find how to do it.

Would you have an idea?

Thank you !

Hi everyone,

Problem solved during office hours (big thanks to @Joyce and Quentin).

So here is the solution if you face something similar:

  1. Create a variable to store the data (here an array named Selected_obj)
  2. Create a global workflow

    Create a true/false split action.

    In the true side of the tree

    In the false side of the tree
  3. Select the checkbox (here named “Option 1”) and create a new workflow, with an action “execute workflow”. Select your global workflow and in the value put the name of the checkbox “Option 1” (repeat this for as many options you have)
  4. Create a button onto the page which upon click , opens a new page (beforehand create a page with a table)
  5. Bind your variable (here selected_obj) to the collection list
  6. Then, select the “text” element and bind it to the item name

Then have a drink to celebrate :champagne:

Hello,

I’d like to add more information on the “option” page adding for each option an amount (how much) and a date (when), as below :

I tried to use the logic mentioned in my previous post, i.e. feeding an array. It did not work, so I created an object to store the 3 information ( A) option is clicked B) amount C) date) but it does not work yet.

For example on the global workflow: the “contains” only accepts an array and not an object.

Also, I do not think that the way I feed the object now is correct, as it would always take option 1 values.

Could somebody please help?
Thank you!