Hoppa till huvudinnehållet

Using template literals in Create Feature activity

Kommentarer

2 kommentarer

  • 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

Du måste logga in om du vill lämna en kommentar.