popup add_edit_item
Modal for adding or editing an item
Popup Add Edit Item Reusable Overview
This is the popup used for adding or modifying an Item on the platform. Exists in the menufocusgroup_review reusable and on the owner's portal.
Key Workflows
Button New Item is clicked
Creates a new
Item(and sets itsReview countto 0) if one does not exist alreadyTriggers the
save_itemworkflow
Button Add Image is clicked
Creates an
Imageinstance and adds it to theImagesstate ofpopup add_edit_itemIf the
Itemdoes not have a primary image - which should only be the case when creating a new item or if you’ve deleted every existing image - then the newly createdImagewill be marked as the primary imageThe new
Image(s)are not saved to theItemuntilButton New Itemis clicked
Group Make Primary Image is clicked
Sets the
Image primarystate to that cell’sImage
Group Remove Image is clicked
Deletes that cell’s
Image
save_item [Custom workflow]
Updates the
Itemwith the inputted values from the formWhen saving the
Image mainandImageswe refer to theImage primaryandImagestates onpopup add_edit_itemLinks the
Itemto theImages
Key Elements
RepeatingGroup Images
Contains the list of
Imagesfor the itemPopulated from the
Imagesstate onpopup add_edit_item
Last updated
Was this helpful?