Embedded Form: Space in variable name

Hi,

we made a creative choice by using spaces in variable names. It worked so far, but embedded forms do have a problem.

Json variable:

{
  "adress" : {
    "first name" : "Chuck Norris"
  }
}

Then using the variable in embedded form like this:

<td><input type="text" id="input_firstname" ng-model="adress.first name"/></td>

Creates an parse error stating that name is an unexpected token.

Can I somehow include a space in the variable name?

I would like to avoid adjusting all variable names in all Service tasks.

Regards,
Markus

@Noordsestern It seems to be angular issue. It should work for address['first name'].

Refer this example:

1 Like