Skip to content

Commit

Permalink
Added conditional fields on role based field (segmentio#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitSegment authored Jul 2, 2024
1 parent a76c78d commit b6a76dc
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ const action: ActionDefinition<Settings, Payload> = {
label: 'External ID',
default: {
'@path': '$.userId'
},
depends_on: {
conditions: [
{
fieldKey: 'role',
operator: 'is',
value: 'user'
}
]
}
},
email: {
Expand All @@ -34,6 +43,15 @@ const action: ActionDefinition<Settings, Payload> = {
format: 'email',
default: {
'@path': '$.traits.email'
},
depends_on: {
conditions: [
{
fieldKey: 'role',
operator: 'is',
value: 'user'
}
]
}
},
phone: {
Expand Down

0 comments on commit b6a76dc

Please sign in to comment.