Custom Fields
Introduction
Sellers can create additional custom fields against the already existing objects in the Fynd platform. For example, a furniture retailer might want to showcase details such as material composition, dimensions, and assembly instructions for their products. This kind of information is specific to certain product categories and provides customers with detailed insights relevant to their purchase decisions.
How to Create Custom Fields?
- In the Custom Data Settings page, under custom fields select the required object where you want to create additional custom fields. You will get a list of existing custom fields. You can either edit the existing one or create a new one.
-
In the Create Custom Fields page, define the custom field by entering the details of the same:
-
Custom Field Name: Enter a name for the custom field.
-
Custom Field Type: Specify the type of the custom field, e.g., text, number, date, etc.
- Integer: Values accepting numbers like 1,2,3,-1 etc.
- Decimal: Values accepting decimal number values like 1.1, 45.3
- Single Line Text: Text accepting 255 characters
- Multi Line Text: Text accepting 4000 characters
- Date: Date format DD/MM/YYYY
- Date-Time: Format DD/MM/YYYY - 00:00 AM/PM
- File: Formats .txt, .png, etc
- Dropdown: Input to be taken from predefined values
- True or False: Boolean input radio-button selection
- URL: Accepts URL link
- Product: Accepts products created on the Fynd Platform
- Custom Object: Accepts objects created in custom object section
- Custom JSON: Accepts free flow formatted json object
- HTML: Accepts HTML input to format content, ideal for embedding structured content or designs.
For example, the following metafield content types and examples can be applied:
Data Type Description List Inclusion Example Decimal This can be used for numeric values like processor speed or storage capacity. Yes Add the processor speed in GHz for laptops. Dimension Utilize this for whole number or decimal values with metric or imperial units. Yes Include screen resolution dimensions for smartphones. File Reference Supports file uploads for images or documents related to technical specifications. Yes Attach images showcasing product features. Integer Ideal for whole number values. Yes Specify the number of cores for a laptop processor. JSON Supports raw JSON data for structured information. No Create a structured table of technical specifications using JSON. Product Reference Links to one or multiple products, suitable for cross-referencing related items. Yes Link to related accessories or complementary products. Single Line Text Plain text with no line breaks, suitable for concise information. Yes Provide a brief description of product features. True or False Creates a checkbox for a boolean value, useful for indicating product features. No Indicate whether a device has a fingerprint sensor. URL Supports URLs, useful for linking to external resources or reviews. Yes Link to detailed technical reviews hosted on specific websites. - Description: Provide a brief description or purpose of the custom field.
- Namespace and Slug: These are used for identification and should be unique. The namespace is like a category or group, and the slug is the specific name for the field.
Figure 2: Custom Field Details
- After defining the custom field, you can enter validation details:
- Minimum Value: If applicable, set the minimum value that the custom field should accept.
- Maximum Value: If applicable, specify the maximum value for the custom field.
- Placeholder: Provide a placeholder text that appears in the field to describe the field or to give an example.
- Accept Multiple Values: If the custom field can have multiple values, enable this option.
- Mark this Field as Mandatory: If the field is required, enable this option to indicate that users must fill it out.
-
The validation criteria for custom fields may vary depending on the specific custom field type chosen. The previous example is for an integer number, but different field types may have distinct validation requirements.