How to Set Default Text in BoldDesk Ticket Description Field
The Description field in BoldDesk’s Customer Portal ticket creation form is a mandatory system field and cannot be hidden or left empty. If you want customers to submit tickets without manually entering a description, you can pre-fill this field with default text using Custom JavaScript in the Customization section of the Customer Portal under the Admin module.
BoldDesk automatically handles newline characters based on how content is entered in the Description field. The Description field uses a rich text editor. Simply press Enter to create a new line or paragraph—no special formatting or characters are required. All line breaks are automatically preserved when the ticket or content is saved.
This customization ensures:
- Customers can submit tickets quickly.
- The Description field remains editable for additional details.
Prerequisites
- Administrator access to BoldDesk.
- Active Customer Portal for your brand.
Steps to Add Default Text in Description Field
1. Navigate to Customization
- Go to Admin → Customer Portal → Customization.
2. Add Custom JavaScript
- Paste the following script in the Custom JS editor and click Save:
const intervalId = setInterval(() => {
var des = document.querySelector('#descriptions');
if (des) des.ej2_instances[0].value = "Your content";
clearInterval(intervalId);
}, 500);
Expected Behavior
- The Description field will display your default text when the ticket form loads.
- Customers can submit the form without typing anything or add extra details if needed.
Before Adding Custom JS
Adding Custom JS
After Adding Custom JS
Use Cases
- Faster ticket submission for customers.
- Provide guidance by adding a helpful prompt.
- Maintain consistency across all ticket submissions.
FAQs
1. Where do I add the script?
In Admin → Customer Portal → Customization → Custom JS.
2. Can I hide the Description field?
No, it is a system-mandatory field.
3. Can I make the Description field uneditable?
Yes, using additional JS/CSS, but it’s not recommended.
4. Will updates break the script?
Selectors may change; review after updates.