Skip to main content
Nintex Community Menu Bar
Question

how i will fetch field's dataType, length(if field is Text type), label and helpText from Object in

  • July 9, 2024
  • 5 replies
  • 26 views

Forum|alt.badge.img+3

how i will fetch field’s dataType, length(if field is Text type), label and helpText from Object in javascript skuid

This topic has been closed for replies.

5 replies

Forum|alt.badge.img+6
  • Nintex Employee
  • July 9, 2024

You can use skuid.model.Model.getField() to get field metadata. All four of the things you mentioned are included, but here is the full list.


Forum|alt.badge.img+3
  • Author
  • July 9, 2024

i am fetching
 var vt=  skuid.model.Model.getField(take_priority__c); 
  alert(‘>>>>>>>>>>>>>>>’+vt);

Not working…

Also
var vt=  skuid.model.ContFlds.getField(take_priority__c);    alert(‘>>>>>>>>>>>>>>>’+vt);
ContFlds- my model name


Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024

This syntax will give you the field metadata object. 

skuid.model.getModel(‘ModelName’).getField(‘FieldName’)




Forum|alt.badge.img+3
  • Author
  • July 9, 2024

Can you share me the links of good code stuff of skuid…i am new in skuid…


Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024