Examples
Image slider
📸 Image Slider in Ninox

This is how you build your custom-designed image slider – completely without external gallery tools.
Do you want to browse multiple images from a table clearly and interactively? In this post, we will show you step by step which widgets and Ninox settings you need – including example code for implementation.
🧩 Required Widgets
📁 Structure of Your Table
You need a table with the following fields:
Field Name | Type |
---|---|
| Document/Image Field |
| URL Field |
| Number Field (for sorting) |
| Text Field |
| Helper Field (Text), e.g., in the layout |
💡 Tip: The field currentImage
is used to control the currently displayed image in the slider.

🛠️ Procedure
Once you have implemented the requirements mentioned above, you can begin with the actual setup of the image slider.
1. Insert Code
The application code for the slider is placed in a Form Field (e.g., imageSlider_Layout
). This field is responsible for the visual display of the images and the navigation.
2. Important Ninox Settings
In your image table, you should pay attention to the following points:
sortId
(Number Field)
→ This field must be filled with an ascending number for each image (e.g., 1, 2, 3 …).
→ It controls the order in which the images are displayed in the slider.shareUrl
(URL Field)
→ This field contains the direct link to the image file – important for display in theCustom Image
widget.
→ It is best to set this value automatically when uploading an image.
Automatically populate shareUrl
To automatically populate the shareUrl
, you can set a Trigger on Change in the Image Field. This way, the URL will be updated every time a new image is uploaded.
Example Code for the Trigger on Change:

3. Create Helper Field
Create a Text Field in the table where you want to display the image slider – e.g., currentImage
. This field stores the currently displayed image ID and will be changed via the navigation buttons in the slider.
Insert Application Code
Now create a Form Field, e.g., imageSlide_Layout
, and insert the application code there. Pay attention to the following adjustments:
💡 Tip: embedded
- Parameter Set Correctly
Depending on where you want to use the image slider, you must set the embedded
parameter correctly:
embedded: false
→ When you use the slider directly in a Ninox form field (e.g., as its own layout field).
→ The slider behaves like a standalone widget.embedded: true
→ When you embed the slider within another widget or in a larger custom layout.
→ The slider will then adapt to the surrounding structure.
5. Set Table & Field References
At the beginning of the code, your variables must correctly refer to your own image table and the fields contained within it.
✍️ What do you need to adjust here?
Images_Slider
→ Replace this name with the actual name of your Ninox table containing the images.sortId
→ Replace with the name of your sorting field in this table (e.g.,Order
).
In the Custom Buttons
of the slider, you need to provide the fieldId of the currentImage
field to ensure the buttons work correctly. Make sure to replace the fieldId
in both buttons:
Button
"caret-left"
Button
"caret-right"
6. Final Step: Adjust References ✅
Set the name of your image table and your field in the target table in the record references.
⚠️ This adjustment is crucial for the navigation in the slider to work correctly.
🚀 And now: Get Started!
Once you have implemented all the steps, your custom-configured image slider is ready to go.
Whether it is a team gallery, portfolio or visual highlight – you can now easily browse through the images. 🏞️✨