Text Inputs (text, email, tel, url)

Create Inputs of type text

Advanced Settings (recommended):

Available Types:

  • text
  • email
  • tel
  • url
  • number

 

addField([
   'type'=>'text', //required
   'attributes'=>'', //optional
   'name'=>'', //optional (leave empty if you don't want to submit the value)
   'value'=>'',  //optional (predefined value)
   'placeholder'=>'', //optional
   'label'=>'Information Text', //required
   '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)
]);

 

Quick Mode: 

addField('text', 'Label', 'DB Column Name','Input Value');

//example: addField("text","Last Name","LNAME",$db_items->result(0,"LNAME"));