block-quote On this pagechevron-down
copy Copy chevron-down
React 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.
Copy <form class="your-class" id="dr_deal_terms" name="DR Deal Terms" action="/api/v1/dr/quote">
</form> This form is used for all Digital Retailing parameter fields.
Attributes:
You custom css class to apply to the form.
Copy import {DMDealForm} from "@dealermesh/react";
<DMDealForm className={'your-class'}>
... your code here
</DMDealForm> This form is used for offers, rebates and incentives selection.
Attributes:
You custom css class to apply to the form.
Copy import {DMOffersForm} from "@dealermesh/react";
<DMOffersForm className={'your-class'}>
... your code here
</DMOffersForm> This form is used for protection plan selections.
Attributes:
You custom css class to apply to the form.
This form is used for capturing the trade vehicle details. The input fields will vary based on the trade partner.
Attributes:
The vehicle identifier type - plate or vin or ymmt
The step the UI is in - id or miles or options. This list can vary based on the partner.
You custom css class to apply to the form.
This form is used for submitting a soft credit check.
Attributes:
You custom css class to apply to the form.
This form is used manage a full credit application.
Attributes:
You custom css class to apply to the form.