How to get field Id except for field API

  • 1
  • Problem
  • Updated 1 year ago
  • In Progress
I have requirement to pass the value form one lookup field to another text area field in a sameobject with comma seperate.

I am trying  by using javascript but I am unable to get Id of field(unique Id),even I am using field API name so it's not working.Is any one have Idea?
Photo of vicky singh

vicky singh

  • 240 Points 100 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Christine Jessen

Christine Jessen

  • 670 Points 500 badge 2x thumb
Hi Vicky!

Can you post what line of JS you are using on your Skuid page?  

You should be able to get the field value with something similar to this:
var yourModel = skuid.model.getModel('MODEL_NAME');
var yourModelRow = yourModel.getFirstRow(); // If you're referencing the first row, otherwise you can use .getRowById(ROW_ID)
var fieldValue = yourModel.getFieldValue(yourModelRow, 'FIELD_API_NAME');
For more details about the skuid.model API's, you can reference our documentation here:
https://docs.skuid.com/v10.0.4/en/skuid/api/skuid_model_model.html

Good luck!
Thanks,
Christine