Posting as a guest so that I cannot comment;) You can also find a list of available field types useful for collecting data, such as URLs and emails. You can find the full list here . Also available in the folder structure in libraries/cms/form/field and libraries/joomla/form/fields . There are URL and email fields that I think include appropriate filtering. Usage in XML file:
<field name="myAwesomeURL" type="url" class="awesome"></field>
This is displayed as an input text box.
source share