Get Variable Type in Client Script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 03:51 AM
Hi,
Can you help me with identifying the variable type of a field in client controller.
Thanks,
Preethi
Labels:
- Labels:
-
Service Portal
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 04:23 AM
Hi Preethi,
Not sure weather you want to get the variable type on catalog item or field type on the form but there is no direct way to get the type of the field/variable. If you still want to get the type then you will have to write a gildeajax call to script include and in script include you need to query the dictionary table if form field or variable table if variable to get the type of the field.
Please mark correct if helpful.
Regards,
Vaibhav Dane