Reset a variable on a form

  • 11 January 2018
  • 1 reply
  • 2 views

Badge +3

I need to reset the value that is stored in a variable. I am using a repeating section to fill out a form. In that repeating section, I store the value selected from a list lookup in a variable. That part works as intended. However, when I add a section, because that variable contains the same value from the previous section I get a conflict when I try to filter subsequent controls based off that value. 

For example: 

   The value stored in the variable from section 1 would be: "Item1"

   

   The value in the variable when added a section would then become: "Item1, Item2"

I need to reset the variable so that instead of storing the above, it would be cleared to just contain the value "Item2"

I am open to any and all ideas. 

Thanks.


1 reply

Userlevel 5
Badge +14

When you say 'variable' do you mean a Form Variable, or a JavaScript Variable? 

Do you have a screenshot of your Repeating Section and Controls in question? 

Is the Lookup Control's value you are storing in a variable exist in the Rows of the Repeating Section, or as an independent control outside of the Repeating Section? 

Without more context, it's difficult to understand the correct way to approach the problem. 




Reply