Zum Hauptinhalt gehen

Using template literals in Create Feature activity

Kommentare

2 Kommentare

  • Alex St. John

    Thanks to Alisa Lindley

    As far as I know, dynamically calling variables is not supported in JavaScript. However, there are some workarounds we can use to accomplish certain ends. For example, the form elements can be accessed by indexing the $form.state array. So you could use an expression like:

    =$TotalFootage.result + $forEach4.item.attributes["AsBuiltLength"] * $CleaningForm.state[`intTimesJetted${$forEach4.pass}`].value.numeric
    1
  • Jack Charde

    This is a fantastic workaround for needing to dynamically get form elements. I just needed to determine how to do this. Good to know that .state is an array of form element objects.

    Thank you, Alisa! And thank you, Alex, for posting her solution. 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.