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

  • Jul 9, 2024 9:48 PM UTC
  • 5 replies
  • 52 views
  • Translate All

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
  • Jul 9, 2024 10:58 PM UTC

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.

Translate

Forum|alt.badge.img+3
  • Author
  • Jul 9, 2024 10:58 PM UTC

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

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 10:59 PM UTC

This syntax will give you the field metadata object. 

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



Translate

Forum|alt.badge.img+3
  • Author
  • Jul 9, 2024 10:59 PM UTC

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

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 9, 2024 10:59 PM UTC