Visual Builder

Get Involved. Join the Conversation.

Topic

    Ameur Baccoucha
    Display the default value in a select-one field
    Topic posted July 19, 2019 by Ameur BaccouchaGold Medal: 3,500+ Points, tagged UI, Web 
    45 Views, 3 Comments
    Title:
    Display the default value in a select-one field
    Summary:
    i wanna to display the default value of the variable in the select-one with static list options
    Content:

     

    Hi,

    So, what I have is the edit form page (where each variable has a default value to display) contains a select-one field with a static list.

    What I want is to display the value of my variable that i get from the SDP.

    what happens now, the field always displays the first item of the static list.

    what i tried, i created an item text-binding with my variable and make it my first item also i disabled it (to not display the same value two time) but it display the variable expression {{ $page.variables.putOpportunityId.status}} and this is due to the time taked by the rest call.

    I wish it to be clear cheeky
    Any help please

    Comment

     

    • Shay Shmeltzer

      What is the value attribute of your select one choice item bound to?

      Does the variable in your page contains the right value after the fetch from the REST endpoint?

    • Ameur Baccoucha

      I did test the beforeEnsterVb event to get my variables before opening the page but also it doesn't work.

      what i did (work around) a create a flow variables and get the variable when a click the edit button before navigate to the page. i wish this could help anyone and looking for better solution from you.