FieldElement with valueExpression + Coded Values and event

156
0
02-05-2024 05:07 AM
Zdenekprocner
New Contributor II

Hello everyone,

I would like to you know how

  1.  write event on "change" combobox or type: "radio-buttons" in FieldElement?
  2.  and how to set ExpressionInfo with Coded Values (domains).

 

Example:

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featureform-asyn...

 

and I want:

  1.  add 'valueExpression' to 'maintainFieldElement' so that when 'ownedByFieldElement' changes to ownedby = 2 [2:Other], it also automatically changes 'maintby' to maintby = 2
  2. I don't know how to write an event in the combobox.

I don't know how to write 'expression':

const Expression_maintainFieldElement = new ExpressionInfo({

        name: "for_maintby ",

        title: "for_Maintained-by",

        // returnType: "string" | "number"

        expression: ??? Coded Values Not Work

      });

 

Thank you for any reply,

Zdeněk

 

0 Kudos
0 Replies