Lookup field - Show items in Descending order...
AnsweredI have a form that has a Lookup Field to another List - I want to know if it's possible to make the list appear in Descending order instead of the standard Ascending order... The users of this form typically need to select items that are at the bottom of the list, not the top of the list... so it would be extremely valuable to reverse the order of the items in the Drop-Down (Lookup) field.
Thanks,
Marc
-
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 -
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.
Comments
2 comments