I've just started with looking into EPiServer Forms to see if it matches our requirements for creating forms.
Many of our forms have an "address" part (Streetname, housenumer, zipcode). For this i would like to create one reusable "address" block/element in EPiServer Forms.
Is this possible? I'm getting the impression this is not the-way-to-go.
The reason i want to create this as a composite is that the seperate parts of an address are related. Also address-resolvement will need to take place using the values of all the parts of the address.
Any response would very much be appreciated.
The neat way is like you are thinking about. Custom element that inherits from block types and extends with some custom validation. There are some blogs about custom elements that you can check out. Easier dirty way is probably using existing elements but use name conventions combined with a handler for a submitting form step. Check out blog
For a simple example of Google maps element as well as code for registrating events by using initializable module.
From your point, I guess that validating visitor address (as a whole) is your most concern?
This can be good example as a Sample of FormElement. Thank you.