Progress bar to repr

Hey there! I have a form where users fill in about 12 questions and would like to use the progress bar (bubble plugin).

I’m trying to get the bar to progress dependent on whether the questions has been answered or not i.e if it’s multiline input is empty or not.

The trouble I’m having is that I cannot work out how to increase the progress bar by say 8% every time the multiline input is not empty meaning that the questions have to be completed in order for the progress bar to work correctly.

Does anyone know how to make it so when a inputs value is not empty it would increase the progress bar by 8%?

An idea came to my mind that you can use a custom state as a data source for the progress bar then this custom state can be updated using “do when an input value changed” event.
Other idea that you may add hiden inputs of type integer for each input in the form, and make there initial value is 0 with a conditional that make this value is 8 when the related input is not empty, then the progress bar data source will be the sum of these inputs values divided by there number.

1 Like

If you have your database setup properly and the questions have a number associated with them, like question #1 or question #2 and you know how many questions you have in total you can just do simple math…question #/total questions

database for question data type would have field called question number or sort number and be of type number…somewhere on the page you have these already downloaded form db to show the questions so you can have a place to reference to use the expression operator of count, such as repeating group questions list of questions count.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.