The Google Address Lookup widget is great - however my form needs to have the address output fields arranged in a different order.
I can't seem to move or delete the fields from the output address block after it has been added to my form. What's the best way to customise these fields so that the widget can be usable in different locales?
Fields inside blocks are not able to be deleted, the most you can do is make it never visible and change the binding on the field so the value is not persisted. You would need to make sure this doesn't impact any business rules that use the field.
Changing the field order can be done through the layout manager as you cannot re-order the fields from the order defined in the block. If you do to the Layout properties for the field there will be a layout order property (depending on the layout manager the field is in) and you can change this. If this is blank then it effectively appends 0 to the index of the field inside the block.
For example in the screenshot above, if you set the layout order to -1 then this field will appear at the start of the block, setting it to 1 it will appear at the end. If you set Address Line 1 and Suburb to 1 and Address Line 2 and State to 2 then it appears as below. Postcode is first because blank is 0.
Thanks Glenn, quite clear.
I think feature request is needed to provide an Address Lookup widget that excludes the output fields. This will allow the form developer to configure their own as they see fit.
In my particular case, European address fomats differ greatly from the US / AU format assumed by the current widget. Reimplementing the entire widget appears to be the only way to avoid having a completely redundant output address block fields included in the form structure.