AnsweredAssumed Answered

Get current module and view javascript

Question asked by Matthew Heinzel on Jan 10, 2018
Latest reply on Jan 15, 2018 by Francesca Shiekh

Is there a javascript function to get current action/view (QuickCreate/Create/Edit/Record) and module (i.e "Meetings"). Something like SUGAR.App.getCurrentView() or SUGAR.App.getCurrentACL() ??


I am trying to filter what modules show up as options for the parent relate field type, it currently shows every module, even the ones we don't use, currently I am looking at modifying the _filterModuleList: function(modules) under clients/base/fields/parent/parent.js as it looks like it only filters by ACL access, and you cannot for some reason change it in studio (despite having a dropdown editor?) and i would like it to filter based off different arrays depending on current module


Any help would be appreciated, I'm growing quite frustrated