I’m currently facing an issue with resetting the value of a custom field in a ticket to blank or an empty value.
I’ve tried using the “setValue” interface method with an empty string or passing a blank value to the custom field, but it doesn’t seem to work as expected. The custom field retains its previous value and doesn’t reset to a blank state.
I have created a support ticket (#14101766) for Freshdesk on behalf of you to analyze the issue and provide resolution or alternatives if available. I have also added you to the email loop.
@Akhil_Moningii Here’s the summary of the discussion and decision happened for this issue:
Since I can reproduce this issue, I have created a support ticket for the Freshdesk team to analyze the issue.
They have confirmed that passing an empty string will not reset the value for custom fields and provided an alternative script to reset the value for custom fields with an empty array. (client.interface.trigger('setValue', { id: 'field_name', value: [] }))
Since it’s an intentional choice and the ask for an empty string is also reasonable. It has been accepted as a feature request to analyze and take up this change in the future to avoid any side effects and deprecation cycle for the previous syntax.