Adding Custom Fields
- Navigate to ShahiAssist → Settings → Tickets or Knowledge Base.
- Scroll to the Custom Fields section.
- Click Add New Field.
- Configure:
- Save settings.
- In the field settings, toggle “Required” on.
- Users must fill required fields before submitting.
- Validation prevents submission if missing.
- Use
addfilter('shahiassistcustomfields', 'mycustomfields'); - Function returns array of field definitions.
- Example:
- See Advanced Configuration for more.
– Label: Display name (e.g., “Product Version”).
– Type: Text, Textarea, Select, Checkbox, Radio.
– Options: For select/radio, list choices.
– Required: Check to make mandatory.
– Help Text: Tooltip or instructions.
Fields appear on ticket/KB forms automatically.
Required Fields
Programmatic Custom Fields
For developers:
`php
function mycustomfields($fields) {
$fields[] = [
‘label’ => ‘Custom Field’,
‘type’ => ‘text’,
‘required’ => true,
];
return $fields;
}
`
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.