Links

Add Links on Forms (not inputs)

Add a Link to a form, this is not an input and will not submit any value

 

addField([
   'type'=>'link', //required
   'name'=>'', //required (INNER HTML of the anchor tag)
   'value'=>'',  //required (the href value)
   'label'=>'Label Text', //required
   'attributes'=>'', //optional
   'placeholder'=>'', //optional
   'id'=>'', //optional (name becomes the id by default)
   'style'=>'', //optional
   'class'=>'', //optional
   'blockClass'=>'', //optional (class for the container)
   'blockStyle'=>'', //optional (style for the container)
   'dataString'=>'data-test="value"', //optional (full data attribute and value)
]);