How to order or set default option for Mass Update select2?

When selecting Mass Update from List View on, for example, Cases, the select2 for the field that is to be mass updated has a certain order.

Can I sort that list and/or at least choose what the default option is?

It seems from massupdate view that I should be able to set the defaultOption in metadata somewhere... but where/how?

thanks,

FrancescaS

Parents
  • Not sure I follow.  Are you saying you want the records updated in a certain order?

  • No, sorry, I am trying to order the list of fields available for mass update, or at least be able to set what the first one is, so that as soon as they open the mass update the selected field in the dropdown is "Assigned To" instead of Request Type as it shows now.

    Thanks,
    FrancescaS

  • Ahhh, yeah.  You would have to override the clients/base/views/massupdate/massupdate.js and make changes to the setMetadata() function.

    In there there is

    fieldList = metadataModule.fields;

    You could reorder it after that.

Reply
  • Ahhh, yeah.  You would have to override the clients/base/views/massupdate/massupdate.js and make changes to the setMetadata() function.

    In there there is

    fieldList = metadataModule.fields;

    You could reorder it after that.

Children