Skip to content

Instantly share code, notes, and snippets.

View bmodeprogrammer's full-sized avatar
🎯
Focusing

Elias Pinheiro bmodeprogrammer

🎯
Focusing
View GitHub Profile
@bmodeprogrammer
bmodeprogrammer / getDependentPickListsValues.js
Last active August 28, 2018 13:11 — forked from boxfoot/getDependentPicklists.cls (2017 approach)
Get dependent picklist values javascript remoting
/**
* getDependentPicklistOptions
* by Benj Kamm, 2012
* (inspired by http://iwritecrappycode.wordpress.com/2012/02/23/dependent-picklists-in-salesforce-without-metadata-api-or-visualforce/)
* CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/us/)
*
* Build an Object in which keys are valid options for the controlling field
* and values are lists of valid options for the dependent field.
*
* Method: dependent PickListEntry.validFor provides a base64 encoded