Current Behaviour:
When I add custom fields using setAttributes, for some reason the platform automatically changes the attribute names to title case, making some things display in an unintended manner. For example, accountID becomes Accountid which obviously looks pretty weird and doesn’t read well. I can get it to display something more readable with account-id which becomes Account Id which I discovered by accident and does read slightly better.
Expected Behaviour:
The name of the field should be exactly as I set it using the javascript API, with no modifications other than maybe a trim.
Hi,
Thanks for reaching out to us.
Would it be okay to go over this in a call with one of our team members via screen share? If so, please feel free to schedule a session with our technical team using the link below:
Calendly
Please note:
- Available times are shown in 24-hour format
- All meetings will be held via Zoom
We look forward to assisting you!
No need for a call, please report the bug to the team and update the docs to clarify.
Thank you for your message. Could you please share some images or screenshots to help our team better understand the issue and investigate further?
For example, when you pass “userId” with the JS API, it becomes “Userid”. From the Tawk interface:
