Skip to main content

Search

Lookup field - Show items in Descending order...

Answered

Comments

2 comments

  • RosarioM

    Good morning

    Dear Marc Bernard,

    By default it's not possible to do this, you can try to use jQuery to do what you wish, write script using jQuery.
     If you are using Rich Forms then you can write such script on Initial Action (using Rich Forms functionality).

    We hope that could have helped.

    We wish you a nice day.

    Best Regards

    Rosario Matos

    0
  • Matthias_Walter

    Hi Marc Bernard,

    you can use the following code snippet in an execute script action in the form load actions configuration to get the dropdown ordered descending:

    jQuery('select[title^="CountryLookup"]').html(jQuery('select[title^="CountryLookup"] option').sort(function(x, y) {
    return jQuery(x).text() > jQuery(y).text() ? -1 : 1;
    }));

     

    Kind regards

    Matt

    0

Please sign in to leave a comment.