4 Replies Latest reply: May 9, 2018 10:26 AM by Roy Nilsson RSS

    app.field('Field').selectValues() Don't work on all fields

    Roy Nilsson

      The selectValues method don't work on every fields which is strange.


      Example code that doesn't work


      app.field('FrånvarandePeriod').selectValues(["2016/2017"], false, true);

      Even tried the longer version

      app.field('FrånvarandePeriod').selectValues([{qText: "2016/2017"}], false, true);

      It doesn't give any errors, just an empty selection

      But this works

      app.field('FrånvarandeMånad').selectValues(["jan"], false, true);

      Same code but different values

      Someone who knows what the problem can be?