Auto Select the Radio Buttons depending upon the Screen’s

Loading

Requirement: Use variables that automatically select radio buttons depending on certain criteria. If the user navigates from Screen 1, Level 1 is going to be selected in Screen 3, and if they navigate from Screen 2, Level 2 will automatically be selected in Screen 3.

Create Canvas app with Three Screens, In first screen create a label write a text to the label, Use a underline property to the label and Set a variable on OnSelect Property of the label and write the Navigate function to the same label write below mentioned formula.

OnSelect Property:
Set(Radiobtl,Lavel1);Navigate(managerapprovalScreen)

Use the Same variable in Screen2 and Functionality mentioned below.

OnSelect Property:
Set(Radiobtl,"Level2");Navigate(managerapprovalScreen)
  • In managerapprovalScreen-
    • Insert the radio buttons on Items Property add a text as Level 1 and Level 2 ,
    • Change Display Mode of the Radio button to View mode,
    • In Default event of the radio button Declare that variable.
Display mode Property:
DisplayMode.View

Declare the Variable in Default property of Radio button i.e., Radiobtl. By this the radio button will be selected automatically.

  • If the user navigate from Screen 1 the Level 1 radio button is automatically selected in the managerapprovalScreen.
  • The user navigate from the Screen 2 then Level 2 present in the managerapprovalScreen it will automatically Selected.

Leave a Reply

Your email address will not be published. Required fields are marked *