Create a new pmprorh_field object with an array of properties
Here is an example of how you can create a new pmprorh_field
object with an array of properties:
const pmprorh_field = {
"name": "My Field",
"type": "text",
"required": true,
"options": [
{"label": "Option 1", "value": "option1"},
{"label": "Option 2", "value": "option2"},
{"label": "Option 3", "value": "option3"}
]
};
In this example, the pmprorh_field
object has the following properties:
name
: a string value representing the name of the fieldtype
: a string value representing the type of the field (in this case, "text")required
: a boolean value indicating whether the field is requiredoptions
: an array of objects, each representing an option for the field. Each option object has two properties:label
: a string value representing the label for the optionvalue
: a string value representing the value for the option
You can modify the properties and options to fit your specific use case.