When the browser is Mozilla Firefox, there is an issue with the setValue interface API

Hi Team,

We are using the setValue interface trigger to set a value in a date type custom field.

It is working as expected in Google Chrome and Microsoft Edge, but not in Mozilla.

client.interface.trigger("setValue",{id:"cf_pickup_date",value:"05-10-2022"})

This is how the field Pickup date looks like on Chrome.

On Mozilla, the same field looks like this:

Thanks,
Akhil Moningi

Hi,

MomentJS which is a library the product uses has deprecated the DD-MM-YYYY format.

You would be getting a message on the console.

You can use the ISO format of YYYY-MM-DD as follows

client.interface.trigger("setValue",{id:"cf_pickup_date",value:"2022-10-08"}) 

Hope this helps!

Thanks

2 Likes

Hi @Asif,

Thanks a lot for your reply. The ISO format is working in both Chrome and Mozilla.

Thanks,
Akhil Moningi

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.