Creating an object and adding fields
For this example, we need to first create the Arcade Games custom object and then create some custom fields so we can enter the required data.
Creating the Arcade Games object
To create the custom Arcade Games object in Skedulo Platform:
In the Skedulo web app, navigate to the Settings > Objects and fields page.
On the Objects and fields page, click the Create custom object button to display the Create Custom Object modal.
Enter a label, name, and description for your object. In this example, we want to be able to keep track of our stock of arcade game machines, so we will enter the following:
- Label: Arcade Games
- Name: ArcadeGames
- Description: Arcade game machines in stock.
Click Create. By default, all objects have a UID field that generates a unique identifier for the object whenever a new entry is created.
The new Arcade Games object can now be found on the Objects and fields page.
In addition to this, a set of default page templates and config files are created. For this example, the page templates we are interested in are the -create, -edit, -view, and -list templates. They can be accessed from the Settings > Platform Pages page, but before we do that, we should add some custom fields to the object.
Adding custom fields to the Arcade Games object
Add custom fields to your object so that you can record the required data.
- Navigate to the Settings > Objects and fields page.
- On the Objects and fields page, click Arcade Games to open the custom object’s page.
- Click Add custom field to display the Create Custom Field modal.
- Select Text and click Next.
- Complete the required information. In this example, we will enter the following for the first field:
- Field label: Make
- Field name:
- Description (optional): Enter the machine’s make
- Field length: 255
- Select the Display settings for the field.
- Click Create. The custom field is added to the Arcade Games object page.
- Add the rest of your fields. You can add as many as are required and choose between ten different field types. The order in which you add them is not important as this can be changed when we configure the pages later.
For the Arcade Games example, we will add the following fields:
|Field label||Field name||Field type||Details|
|Cost per day||
||Picklist (with multi-select)||Add options to categorise the games, such as: First-person shooter, Sports simulation, Driving simulation.|
||Picklist||Add options to define the style of the machine, such as: Cockpit arcade machine, Freestanding cabinet arcade machine, Bartop arcade machine.|
||Picklist||Add options to define the status of the machine, such as: Available, Rented, Needs repair.|
|Last seen by||
Note: The Label is the value which is displayed in the web app, the Name is used to identify the field within the object.
On the default arcade-games-create template, these fields will render as follows:
To change the order in which the fields appear and the way in which they’re set out on the page, you can configure the default arcade-games-create template.
The following field types are available to select from the Field type tab of the Create Custom Field modal when creating a custom field:
|Field type||Field description||Additional fields to define|
|Text||A standard string field||Field length. Set the field length, up to a maximum of 255.|
|Text area (long)||A long text field allowing line breaks.||Field length. Set the field length up to a maximum of 131072 characters.|
|Number||A numeric field that can include decimals.||Field length and Field decimal places. The combined length of these two values cannot exceed 18.|
|Date||A date field where you can enter a date or pick one from the calendar pop-up.||N/A|
|Checkbox||A standard boolean field that can be selected or deselected.||Set the default behavior for the checkbox.|
|Picklist||A dropdown list field from which one value can be selected from the predefined options.||Add picklist values, each one on a separate line.|
|Picklist (with multi-select)||A dropdown list field from which multiple values can be selected from predefined options.||Add picklist values, each one on a separate line.|
|URL||Enter a website URL.||N/A|
|Time (beta)||A time-picker field where you can select the time of day in 15 minute increments.||N/A|
|Lookup relationship||A lookup for a field in another object||Object. Set the object that contains the field.|
The following fields are available from the Field details tab of the Create Custom Field modal when creating a custom field:
|Object||The name of the object to which the field is being added.|
|Field label||The identifier used whenever the field is shown in the web app.|
|Field name||A name used to identify the field within the object.|
|Description||Enter a description for the field to make it easier to identify.|
|Field length||Available if you’re creating a Text, Text area, or a Number field.|
|Field decimal places||Available if you’re creating a Number field. Enter the number of decimal places you want to include. The Field length and Field decimal places values cannot exceed 18 when combined.|
|Display settings||These settings dictate whether the field will be visible on the mobile and desktop versions of the web app. It also determines whether the field is ‘required’ as well as allowing the resource to edit the field when using the mobile app.|
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.