Forms
All forms in the UI need to be embedded inside one of the following form components. These components will generate the <form> element add the necessary attributes for analytics and compliance. The following is an example of the code generated.
<form class="your-class" id="dr_deal_terms" name="DR Deal Terms" action="/api/v1/dr/quote">
</form>DMDealForm
This form is used for all Digital Retailing parameter fields.
Attributes:
className
No
You custom css class to apply to the form.
import {DMDealForm} from "@dealermesh/react";
<DMDealForm className={'your-class'}>
... your code here
</DMDealForm>DMOffersForm
This form is used for offers, rebates and incentives selection.
Attributes:
className
No
You custom css class to apply to the form.
import {DMOffersForm} from "@dealermesh/react";
<DMOffersForm className={'your-class'}>
... your code here
</DMOffersForm>DMPlansForm
This form is used for protection plan selections.
Attributes:
className
No
You custom css class to apply to the form.
DMTradeForm
This form is used for capturing the trade vehicle details. The input fields will vary based on the trade partner.
Attributes:
type
Yes
The vehicle identifier type - plate or vin or ymmt
step
Yes
The step the UI is in - id or miles or options. This list can vary based on the partner.
className
No
You custom css class to apply to the form.
DMSoftCreditForm
This form is used for submitting a soft credit check.
Attributes:
className
No
You custom css class to apply to the form.
DMCreditAppForm
This form is used manage a full credit application.
Attributes:
className
No
You custom css class to apply to the form.
Last updated