Skip to main content
Nintex Community Menu Bar
Question

Add a field to a model from a custom component field property

  • July 11, 2024
  • 2 replies
  • 21 views

Forum|alt.badge.img+18

In Skuid (most of the time) when I add a rendering condition on a field using a ‘field’ property in a component, skuid will add that field to the model definition.

I want to do something similar in my custom component. I have a field property, and when the user chooses a field I want to make sure it’s in the field property’s model, and if it isn’t, add it.

How would I go about that?

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+13

Fortunately the answer to this one is incredibly simple:

addFieldToModel: true


🙂

e.g. 

{
   type: “field”,
   id: “importantfield”,
   modelprop: “model”,
   addFieldToModel: true,
}


Forum|alt.badge.img+18
  • Author
  • July 11, 2024

Love it!