Forums

Forums / General Discussions / Look UP to show one partucular value at first. is it possible

Look UP to show one partucular value at first. is it possible

6 posts, 1 answered
  1. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    25 Aug 2020
    Link to this post
    I have a Country look up which gets me a list , is there a way to default to a value from the list on the form?
     
  2. Kasun
    Kasun avatar
    13 posts
    Registered:
    21 May 2015
    Answered
    27 Aug 2020 in reply to Krishna Hari
    Link to this post
    Hi Krishana, 

    You can pre-populate the first value to the lookup. To do this go to Lookup Designer > Advanced > PrepopulateFirstValue set this property to True. 

    If you want to populate a specific value to the lookup, you need to add some custom code using set_value() method  in the lookup API. 

    Here is the link to the Lookup API: https://www.crmportalconnector.com/developer-network/documentation/portal-connector-widgets/tpc-client-side-api/mvc-based/lookup


    Thank you.
  3. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    08 Sep 2020 in reply to Kasun
    Link to this post
    sorry this is not i am looking for. I need  the look up to show all the values but to show one of them first. then show the rest in alphabetical order
     
  4. Omar S
    Omar S avatar
    51 posts
    Registered:
    04 Jul 2019
    11 Sep 2020 in reply to Krishna Hari
    Link to this post
    Please see the link Kasun provided on our api listing and scroll down to set_value. 
  5. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    11 Sep 2020
    Link to this post
    That sets a value right. I do not want to set a value. i just want to order the way its shown
     
  6. Omar S
    Omar S avatar
    51 posts
    Registered:
    04 Jul 2019
    11 Sep 2020 in reply to Krishna Hari
    Link to this post
    Lookups should be ordered by default. If not, then you set that in the fetch builder. We can talk more in the Q+A. Thanks for signing up
6 posts, 1 answered