In a master-detail relationship, is there a way to set the "" to the top of the related list menu?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Photo of Maria

Maria

  • 30 Points

Posted 3 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,224 Points 20k badge 2x thumb
Use the image onload technique and this one line of code:


$("#_fid_10 option[value=_other]").insertBefore("#_fid_10 option:first");

This assumes your [Related Parent] field has fid=10. See attached screenshot of this script having run from the JavaScript console.