Configuring the zc_LoadIn parameter

To learn more about the zc_LoadIn page parameter, click
here.
- Open as popup
- Open in HTML/iframecontainer
You can use the zc_LoadIn parameter to load your app components in a popup when the page loads by following the below steps.
To use zc_LoadIn=dialog parameter in a URL
- Navigate to the edit mode of your app.
- Open the builder of the required page.
- Drag and drop an HTML snippet onto the builder. Its Configuration pane will slide in from the right.

- Alternatively, if you have an existing HTML snippet in the builder:
- Double click the snippet you want to configure
- You can also click to select the snippet and then click the Configure option in the toolbar at the top-center of the page builder.

- Drag and drop a button element onto the builder. Its Configuration pane will slide in from the right.
- Alternatively, if you have an existing button in the builder:
- Double click the button you want to configure.
- You can also click to select the button and then click the Configure option in the toolbar at the top-center of the page builder.
- Enter a suitable name for the button in the Display tab.
- In the Action tab:
- Select the Action type as Open form.
- Choose the required form that you want to open on click of the button.
- Specify the query parameter as zc_LoadIn=embed-openform, where openform is the name of the <div> container you'd mentioned above.
- Select Same window under Open in.

- Repeat the above steps 3-6 for the other two buttons Food Complaint and Restroom Complaint.
- Close the Panel Configuration pane. The changes will be saved automatically.
When you access your page in the live app, the Add Complaints form will be displayed in the HTML snippet container. When a user clicks the button Raise Water Complaint, the respective complaint form will load as a popup.
To open your app component in an embed container (HTML/iframe embed)
The zc_LoadIn parameter enables you to load your app components in an embed container.
- Syntax creation
- Parameter usage
Syntax creation
To use a div embed as a reference in the zc_LoadIn parameter, you need to create and name it by following these steps:
- Navigate to the edit mode of your app.
- Open the builder of the required page.
- Drag and drop an HTML snippet onto the builder. Its configuration pane will slide in from the right.
- Alternatively, if you have an existing HTML snippet in the builder:
- Double click the snippet you want to configure.
- You can also click to select the snippet and then click the Configure option in the toolbar at the top-center of the page builder.
- Drag and drop the Embed Form task from the left pane and specify the div name as below.
<div name="openform">......</div>
Note: - If you're specifying your Creator app component's URL, it should be in the following format—the zc_LoadIn parameter will work only with Creator component URLs appended to hash (#).
openUrl("#Form:Order_Details?zc_LoadIn=embed-myform","same window"); - The window type must be set as same window.
- Specify a name for the snippet, if required, and click Save.

- Close the pane. The changes will be saved automatically.
Parameter usage
- Navigate to the edit mode of your app.
- Open the builder of the required page.
- Drag and drop a button element onto the builder. Its configuration pane will slide in from the right.
- Alternatively, if you have an existing button in the builder:
- Double click the button you want to configure.
- You can also click to select the button and then click the Configure option in the toolbar at the top-center of the page builder.
- Enter a suitable name for the button in the Display tab.
- In the Action tab:
- Select the Action type as Open form.
- Choose the required form that you want to open on click of the button.
- Specify the query parameter as zc_LoadIn=embed-openform, where openform is the name of the <div> container you'd mentioned above.
- Select Same window under Open in.

- Repeat the above steps 3-6 for the other two buttons Food Complaint and Restroom Complaint.
- Close the Panel Configuration pane. The changes will be saved automatically.
When you access your page in the live app, the Add Complaints form will be displayed in the HTML snippet container. When a user clicks the button Raise Water Complaint, the respective complaint form will load in the same HTML snippet container.