You can change the title of the fields, and add the required.
The only required field is the color of the vehicle.
The parameter must be used for each title.
Specific configuration parameters
Parameter | Description |
---|---|
curbside.fields.Color | Parameter used to change the title of the vehicle's color. - Required: true - Default: Color |
curbside.fields.Plate | Parameter used to change the title of the plate number. - Required: true or false - Default: Plate number |
curbside.fields.Location | Parameter used to change the title of the Parking location. - Required: true or false - Default: Parking location |
curbside.fields.Name | Parameter used to change the title of the receiver's name. - Required: true or false - Default: Receiver's name |
curbside.fields.Comment | Parameter used to change the title of the additional information. - Required: true or false - Default: Additional information |
Usage Example
Consider the following examples:
Curbside field
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/lsw.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
curbside:{
fields:[
{ field: "color",label:"moto Color",required: true },
{ field: "plate", required: false, label: "Sotano piso" },
{ field: "name", required: false, label: "Nombre receptor" },
{ field: "location", required: false, label: "Lugar estacion" },
{ field: "comment", required: false, label: "info adicional" }
]
}
}
window.instaleap.lsw.render(params)
</script>
</html>