Allow removal of the "Edit Location" on the map.
Shawn Pickett
Brian Holt - This can accomplished with a bit of data events:
ON('load-record', event => {
SETFORMATTRIBUTES({ manual_location_enabled: false });
});
If you wanted to add a fail-safe for you and anyone administering the app, you could replace the
false
boolean value with an expression like:ON('load-record', event => {
const managerRole = ISROLE('Owner', 'Manager');
SETFORMATTRIBUTES({ manual_location_enabled: managerRole });
});
The roles are based on whatever roles you have in your organization. This allow any user with the manager role to edit the location manually, while everyone else would have this disabled in the UI:
https://docs.fulcrumapp.com/docs/calculations-ref-isrole
https://docs.fulcrumapp.com/docs/data-events-setformattributes