This is helpful. Instead of the BR, I have used full client script solution where I have created an array of all variables then go through it. I wished there was an OOB solution like g_form.showVarsWithValue()