Skip to main content

How do you reference a field from another model in a Rich Text component?

I have a RT component based on my [Contact] model and want to add field details from first row of [Event Model]

Model Lookup:

It should look something like this:

MODEL_LOOKUP(“OpenTaskCount”,“countId”,“casec”,{{Id}})

Here’s the documentation for it:

https://docs.skuid.com/latest/en/skuid/models/ui-only-models-fields.html?highlight=model_lookup


{{$Model.YourModelName.data.0.FieldName}} The 0 stands for row 0 which is the first row of your Model.


This is a better approach if you are looking for the first row of the model.  The model lookup is used if you need to pull a record from a longer model based on criteria.


Thanks.  Will this work for UI-only fields?


I believe so. If using UI only, though, John’s Response gives you more flexibility to select specific rows based on criteria.