Supported fieldTypes
The fieldType attribute refers to the type of field you're looking to render in your custom component.
Fonteva supports the following inputFields. Standard Salesforce fields are marked "custom : false", while Fonteva fields are marked "custom : true".
Fonteva supports the following fieldTypes:
anytype
anytype
"anytype": { componentDef: "inputText", attributes: { 'class': 'slds-input' }, custom : false },
JSboolean
boolean
"boolean": { componentDef: "inputCheckbox", attributes: { "labelClass": "slds-checkbox", 'class': 'checkbox' }, custom : false },
JSfileupload
fileupload
"boolean": { componentDef: "inputCheckbox", attributes: { "labelClass": "slds-checkbox", 'class': 'checkbox' }, custom : false },
JScurrency
Currency
"currency": { componentDef: "inputCurrency", attributes: { 'class': 'slds-input form-control col-md-8', 'format': '.00' }, custom : false },
JSdate
date
"date": { componentDef: "inputDate", attributes: { 'class': 'slds-input slds-datepicker', 'format': 'MM/DD/YYYY', 'displayDatePicker': true }, custom : false },
JSdatetime
datetime
"datetime": { componentDef: "inputDateTime", attributes: { 'class': 'slds-input slds-datepicker', 'displayDatePicker': true, 'format' : 'MM/DD/YYYY hh:mm A' }, custom : false },
JSdouble
double
"double": { componentDef: "inputNumber", attributes: { 'class': 'slds-input form-control col-md-8', 'format': ".00" }, custom : false },
JSemail
email
<Framework:InputFields qaData='{"type" : "input", "name": "email"}' fieldType="email" aura:id="email" label="{!$Label.c.Login_Component_Email}" styleClasses="wrapper-input" isRequired="{!!v.eventObj.guestEmailOptional}" value="{!v.newAttendee}" group="{!v.line.id}" fireChangeEvent="true" otherAttributes='{"updateOn" : "keyup"}'/>
JSpassword
password
"password": { componentDef: "inputSecret", attributes: { 'class': 'slds-input form-control col-md-8' }, custom : false },
JSid
id
"id": { componentDef: "inputText", attributes: { 'class': 'slds-input form-control col-md-8' }, custom : false },
JSinteger
integer
"integer": { componentDef: "inputNumber", attributes: { values: { format: "0" }, 'class': 'slds-input form-control col-md-8' }, custom : false },
JSphone
phone
"phone": { componentDef: "inputPhone", attributes: { 'class': 'slds-input form-control col-md-8' }, custom : false },
JSmultipicklist
multipicklist
"multipicklist": { componentDef: "MultiPicklistInputField", attributes : {}, custom : true },
JSpercent
percent
"percent": { componentDef: "inputNumber", attributes: { values: { format: "0" }, 'class': 'slds-input form-control col-md-8' }, custom : false },
JSpicklist
picklist
"picklist": { componentDef: "PicklistInputField", attributes: { 'class': 'slds-select form-control', }, custom : true },
JSdependentpicklist
dependentpicklist
"dependentpicklist": { componentDef: "DependentPicklist", attributes : {}, custom : true },
JSreference
reference
"reference": { componentDef: "LookupInputField", attributes: { displayField: "Name" }, custom : true },
JSstring
string
"string": { componentDef: "inputText", attributes: { 'class': 'slds-input form-control col-md-8' }, preload : "markup://ui:inputText", custom : false },
JStextarea
textarea
"textarea": { componentDef: "inputTextArea", attributes: { 'class': 'form-control col-md-8 slds-textarea slds-textarea--vertical' }, custom : false },
JSrichtext
richtext
"richtext": { componentDef: "RichTextInputField", attributes: { 'class': 'form-control slds-input col-md-8' }, custom : true },
JSbasicrichtext
basicrichtext
"basicrichtext": { componentDef: "inputRichText", attributes: { 'class': 'form-control slds-input col-md-8' }, custom : false },
JStime
time
"time": { componentDef: "inputDateTime", attributes: { values: { format: "h:mm a" }, 'class': 'slds-input form-control col-md-8' }, custom : false },
JSlookup
lookup
"lookup": { componentDef: "LookupInputField", attributes: { displayField: "Name" }, preload : "markup://c:LookupInputField", custom : true },
JSaddress
address
"address": { componentDef: "AddressPickerInputField", attributes: { }, custom : true },
JSurl
url
"url": { componentDef: "inputUrl", attributes: { 'class': 'slds-input form-control col-md-8', }, custom : false },
JSmultidragdrop
multidragdrop
"multidragdrop": { componentDef: "MultiDragListInputField", attributes: { 'class': 'slds-input' }, custom : true },
JSreorderdragsinglelist
reorderdragsinglelist
"reorderdragsinglelist": { componentDef: "ReorderDragListInputField", attributes: { 'class': 'slds-input' }, custom : true },
JSadvancedselectfield
advancedselectfield
"advancedselectfield": { componentDef: "AdvancedSelectInputField", attributes: {}, custom : true, preload : "markup://c:AdvancedSelectInputField", },
JScolorpickerfield
colorpckerfield
"colorpickerfield": { componentDef: "ColorPickerInputField", attributes: {}, custom : true },
JScodeeditorfield
codeeditorfield
"codeeditorfield": { componentDef: "CodeEditorInputField", attributes: {}, custom : true },
JSradio
radio
"radio": { componentDef: "inputRadio", attributes: { "labelClass": "slds-checkbox", 'class': 'checkbox', }, preload : "markup://ui:inputRadio", custom : false },
JSalternateradio
alternateradio
"alternateradio": { componentDef: "RadioGroupAlternativeInputField", attributes: { "labelClass": "slds-checkbox", 'class': 'checkbox', }, custom : true },
JSmultigroupdragdrop
multigroupdragdrop
"multigroupdragdrop": { componentDef: "MultiGroupDragListInputField", attributes: { 'class': 'slds-input' }, custom : true }
JS
For visual examples of the above inputFields, add '/apex/Framework__playground' to the end of your Salesforce org link - For example, https://your-org-name.na73.visual.force.com/apex/Framework__playground