Set required parameter on home page UI Builder

aneta_koleva
Tera Expert

hello, I have recently started working with UI Builder and I am not able to find something in particular since many time now.

How to set the required parameters on the home page? When you are directing from one page to another it is easy, you just add the needed parameter via hardcoding it or data binding. But for my current assignment I need to show to different home pages (aka 2 variants) based on a system property for the application.

I am considering adding a required parameter and pass the server data for this parameter but I have no idea how this could be achieved. Any guidelines as documentation, training or something?

All this is connected to the requirement to develop an Opt in screens where the Customer to agree with terms and conditions. I was planning to do it via a module which directs to a UI Builder page.

Something like this one:

aneta_koleva_0-1686748887725.png

I tried using URL (from Arguments) and script Include which is checking the property but it seems this redirect is only executed once and on the second click of the same module it is redirecting to the same variant even though the system property has changed it value. Is there something to be considered in terms of caching data for UI BUilder?

If the client has once opted in (set the property to true) and tries to visit the same module (Content Service Setup) then a different page needs to be displayed, like this one:

aneta_koleva_1-1686748998193.png

If user (with the needed role) clicks the hyperlink and opt-out then the property will be set to false and the module needs to redirect to the first Opt in screen.

 

The UI pages above are done with jelly but I wanted to do it with UI Builder as it should be relevantly easier.

#uibuilder

FYI @Brad Tilton 

1 REPLY 1

aneta_koleva
Tera Expert

Furthermore the home page for the opted in customers will be one (more details and functionalities), but for the others (not opted in) should be different.