addOption method in client script not working for a user

sd2097
Tera Guru

Hi all,

 

I am working in a scoped application and inside a domain separated environment. I have used the addOption method on client script to addOptions in a choice field on a form. However, I can see the choices, but other users are not able to see them, even after their profiles are created on the same domain as me, and are having the same roles as I do. What can be the possible reason for this?

 

Thanks

1 ACCEPTED SOLUTION

sd2097
Tera Guru

Hi all, 

 

This was not working, as we were fetching user specific dates. Each user has a specific time format, so that is why this was failing for other users.

GlideDateTime() methods help us fix this.

 

Marking this as the solution.

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@sd2097 

should not be an issue actually.

It's something related to the domain in which the choice list was created.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

sd2097
Tera Guru

Hi all, 

 

This was not working, as we were fetching user specific dates. Each user has a specific time format, so that is why this was failing for other users.

GlideDateTime() methods help us fix this.

 

Marking this as the solution.