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 count
to 0) if one does not exist alreadyTriggers the
save_item
workflow
Button Add Image is clicked
Creates an
Image
instance and adds it to theImages
state ofpopup add_edit_item
If the
Item
does 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 createdImage
will be marked as the primary imageThe new
Image(s)
are not saved to theItem
untilButton New Item
is clicked
Group Make Primary Image is clicked
Sets the
Image primary
state to that cell’sImage
Group Remove Image is clicked
Deletes that cell’s
Image
save_item [Custom workflow]
Updates the
Item
with the inputted values from the formWhen saving the
Image main
andImages
we refer to theImage primary
andImage
states onpopup add_edit_item
Links the
Item
to theImages
Key Elements
RepeatingGroup Images
Contains the list of
Images
for the itemPopulated from the
Images
state onpopup add_edit_item
Last updated