GH89: Use const in custom form elements

Reviewed and approved. Please, merge with master.