How to show a page based on a boolean?

23 Dec '14, 04:39 PM
30,531 Views
No Forum Badges

On a screen, I have a boolean variable, being either a yes or a no. If the user input is Yes, I want to show an extra page (so I want to show not extra controls on the page, but an extra page where the user can insert extra values). If the user input is No, I want to skip this extra page. I have tried several solutions like visibility conditions, and an OK / KO flow, but it seems not to do what I really want; an extra screen that is only visible based on a certain condition, in this case a boolean. Is this even possible?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

Hi,

to show an extra page you can use a visibility condition based on a boolean variable to apply on this extra page and use an "on change" event applied on the field where the user input "Yes" or "No".

 

To use a visibility condition you can refer to this article of our Knowledge Base https://www.webratio.com/learn/learningobject/getting-started-with-visibility-conditions-v-72.

 

The "On change" Event is used to activate the visibility condition, in way that when the user insert "Yes" or "No" and the focus on this field changes, the "On change" event is triggered and allows to reload the screen and update the visibility condition.

 

To use this event you will need to model an outgoing normal navigation flow from the form, for example connected to a "Parameter Collector" to pass the value that it will have an OK Flow that returns in page and set the value in the variable.

 

To apply an "On Change" event, in the Outline View select the field where the use insert the value "Yes" or "No", move to the Properties View and select the AJAX tab.
Activate the “Enable Event” property and choose On Change in the “Event Type” property. Then select the normal navigation flow outgoing from the
Form Component as “Event Flow.”.

 

Best regards.

 
x 0
Answer at this question and get points!

Related questions

Acceder a diferentes site views/ Acces to diferents site views Add to Bag link in ACME any webratio book ? Asking For a Book Attribute comparison in a selector unit Clarification about the NoOperation unit Codigo QR Como hacer un menu en webratio? Conditional Expression "greater than 0" on null fields Connect more query unit Content module page variable won't assign. coupled mandatory fields Create Unit with Date (Year only) Custom Attributes Condition Database Database List is not showing up in App Emulator Data is always created doubled Data Management: Updating Data - Attachments - Updating Data Sample Project Final Description: Unknown tag 'wr:LinkResource' Dudas sobre modelado(Data Flow,Forms y Operation Create) Empty record mistakenly saved en_US codify problem Export XML external link.= Filter information in a Simple List Format currency forward/backward navigation and bookmark in ajax web app "Generation Error" with Generate and Run Generation options problem get the attachment files of an email Get Unit problem Get Year from Date Help for connect public and private site views How can i create pagemenu or landmarkmenu with multiple levels. How does WebRatio represent these IFML elements? / ¿Cómo representa WebRatio estos elementos IFML? How i can reuse modules in multiple projects? How to define the sequence of execution units on a page? How to display the attributes of a related entity. How to filter imported attributes? How to include Selector Unit result in Mail Unit Body? How to pass vars to a alternative page How to process IFML Model (build with Eclipse editor) with ATL How to speed up the "last" link using PowerIndexUnit for lots of records How to store data related to an entity in relationships in a project web Insert data into database Insert master page to many hybrid modules Integrating a BPM model into an existent WebML model JSON I/O Unit e informazioni derivate KO Links in Selector Unit Landmark in hybrid module Link localization Links from Index unit with condition Link Visibility Condition Power Index Unit Mail multipla maintain the record order in a sortable list Math Unit to update attributes of an entity? [MOBILE] How I extract information from JSON client side? Modifica Entità tramite file xml Multi Entry Unit: How to forward only checked rows? multi-lingual product description Non riesco a fare funzionare Xml out unit Parametrizzazione Selector Unit Problem Example create Unit (no company in employee table) Problem in adding diagrams in IFML Editor (Eclipse) Problem with query unit! Problem with Scroller Unit query a database Question about Site Views Rename passing attributes Replace ID by its value in another table Search by Selector component does not work Select between parameters Selector unit doesn't return any value in hybrid module Sending mails is not working Sending mails with gmail is not working Setting the Default link for a Switch unit show/hide fields on button click (registration page) [solved] all links transparent, why ? Something leads to wrong condition expression evaluation. sumar atributos de una tabla filtrado por Role Condition Sum entity's values Transportation Link issue Unique Fields using relationship role conditional with null usuarios y grupos utilizzo componenti database Visibility Condition on Multiple Links From Index Unit WebRation - Create Navigation diagram