1 Forms Tutorial: Create Form Definition
- In UX Studio, from the Navigator view, select the cartridge/forms/default directory in the SiteGenesis Storefront Core cartridge.
- Click File > New and select File.
- Enter the file name interests.xml in the New File dialog box and click Finish.
-
Enter the following XML code:
<
?xml version="1.0"?>
<
form>
<field formid="outerwear" label="forms.preferences.001" type="boolean" binding="interestOuterwear" />
<field formid="footwear" label="forms.preferences.002" type="boolean" binding="interestFootwear" />
<field formid="newsletter" label="forms.preferences.004" type="boolean" binding="newsletter" />
<action formid="apply" valid-form="true" />
<
/form>
-
Click File > Save or the Save icon to save the
file.
You reference this file from the editinterests.isml template.
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.