Hi, is it possible to configure sort preferences through a script, as opposed to using “Sort & Group Settings” in the forms inspector panel?
Seems like field.sortOrder simply specifies field order in the form inspector, but maybe I’m misunderstanding its use?
Hi Stephen,
There’s no function in the JavaScript API to change a form’s sort and group settings.
Can you give me a use case for needing this feature?
Thanks,
Brendan
Hi Brendan,
I don’t have a particularly interesting use case, just the need to sort on different fields at various times.
Sometimes I want to sort a list of projects by date, other times by priority, other times hierarchically showing parent child relationships, etc. Would just be nice to automate, but it’s no big deal.
Thanks for the response!
You can create empty Saved Searches which have just the sort settings on it so you can have different sorted configurations of records.
Oh, perfect!
That’s all I need.
I somehow missed that that was possible with saved searches.
Many thanks!