Glide Library
Searchโ€ฆ
Adding & Editing
In Glide Apps, you can simply enable adding or editing and this will appear as an option in the top right of the app.
However, in Pages, you have to use actions. This introduces a few extra steps, but creates much more room for customizability and power.
For example, in the GIF below โ€“ we add a Show Edit Screen action to the Title Component. This creates a button within the title component that users can tap and trigger the edit screen.
Adding an 'Edit' action to the title component and triggering the edit screen
โ€‹
โ€‹
The two actions you'll need are Show Form Screen and Show Edit Screen.

Show Form Screen

Show Form Screen can be used to send data elsewhere (for example a 'Contact Us' form). To do this, you could add it as an action on a Button.
However, it can also be used to add items within Collections.
A show form screen action on a collection - which adds an item to that same collection
For example, in the image above ๐Ÿ‘† we've used a Collection and added the Show Form Screen action to it and changed the title of the button to say 'Add Item'.
Once we trigger that action in Glide, we can then configure that form screen and make sure that its destination is the same source as the contents of the collection. This will create the functionality of an 'Add to Item' button on our collection.
The form screen's destination is the same source as the contents of the collection.
โ€‹

Show Edit Screen

The Show Edit Screen action can be added to lots of different components. In the following example we have added an Action to our Title component with the action Show Edit Screen.

Form Style

Under the Action configuration, and under Target, we can choose one of four options which will affect the way the form is displayed. Here are the four options we can choose from:
โ€‹
    Small overlay and Large overlay will open the screen as a small/large overlay.
    Main replaces the main screen. So if you already have an overlay screen open and you open a screen with Main, the overlay will close and the main screen will be the new screen.
    Current means open it as whatever the current screen is. So if youโ€™re on the main screen, it will replace the main screen, but if youโ€™re in an overlay, it will replace the overlay.

โ€‹

Last modified 4d ago