- admin status
- if 0 inventory and not backorderable - to show or not to show? This boolean needs to be created when the store is created { name:"Hide Out Of Stock", boolean: true, description:"Hide Product If Zero Quantity And Not Backorderable" , internal_name: "hide_zero" }
- Flat rate
- By weight
- Fedex
<div>
<Form
onSubmit={}
submitButtonText={}
formFields={}
initialValues={}
form={}
formId={}
cancel={}
/>
</div>
the function to execute when the form is submitted
replace the text in the submit button
an array of objects that represent the fields to be used in the form
label: name to be shown above the field
name: under the hood name, typically the same name as the property its associated with for dynamic uses
typeOfComponent: set the type of component to use
- check-box
- multi (multi select drop down)
- text-area
- field-disable
- dropdown
- tree
options: an object to help build non traditional form fields like dropdown, multi and tree
noValueError: message to display to user when a field must be provided and its not provided
create an array of objects that contain a single key and property.
The key is the "name" property in formField (this is why "name" is often the name of the db table field that it corresponds to) and we assign the current value to that property.
This is accomplished easily by using updatedFormFields() in our helper functions file.
params ex: updatedFormFields(formFieldsArray, document from the database)
name of the form that is referenced in redux
function to be called upon cancelling to get out of form if its a pop up or something.