3

I have custom field Location of Geolocation type for standard objects (Account, Contract, Lead etc). For example,

enter image description here

I want this field to be editable. On Edit Layout it is editable by default. But this field is not editable in Inline Edit Mode on View Layout. I want to do them editable in popup dialog.

What is the best way to do this?

EDIT:

I have added individual fields, that "correspond" to compound field components in popup. Like this:

enter image description here

But I don't know how to pass new values to original Location field, so they were safe on Save Button click (Like it happens with Address Compound field by default)

1

There are some limitations in using compound fields. In inline mode they are read-only. Refer to following compound field limits documentation: http://docs.releasenotes.salesforce.com/he-il/spring14/release-notes/rn_schema_compound_fields_limitations.htm

However you can edit them individually. Geolocation field combined with 3 fields in which 2 are available to edit so, you can make them available to edit as:

if field api name is location__c then you can reference location__latitude__s, location__longitude__s individually. I haven't tried it yet but according to documentation it should work.

  • I'm trying such approach. It works fine for Edit Layout, but not Inline Edit mode. The problem: I don't know how to pass new values into original field (please see "edit") – Adel Nazirov Sep 24 '14 at 17:46
  • @AdelNazirov can't you pass those value individually to location__latitude__s (44.24) and location__longitude__s (-78.09). Try to save the record then. You don't need to pass it to any other field. – Ashwani Sep 24 '14 at 17:49
  • I think no, because I have no fields corresponding to geolocation components to edit them (in Inline Edit Mode). So I want: 1) User can edit current values in inline mode; 2) Save new values. For Address fields there is popup Inline Edit Dialog, But not for geolocation – Adel Nazirov Sep 24 '14 at 17:56
  • You have to take two inputfields referencing longitude and latitude field. – Ashwani Sep 24 '14 at 18:24
  • could you provide more details? Now I have compound geolocation field, You mean I should delete them, and create 2 inputfields referencing to longitude and latitude? – Adel Nazirov Sep 24 '14 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.