My Account

Forums

Home Forums General Progress for all fields

Viewing 5 reply threads
  • Author
    Posts
    • #87722
      tomek
      Participant

      How to set up the progress bar for ALL fields, not only required?

      IF
      *Any field*
      is not blank
      THEN
      *Progress Field*
      set value // how to add something like “+1” here?
      ELSE
      *Progress Field*
      set value // “-1”

    • #87724
      Mark Westguard
      Keymaster

      Hi

      This is not possible.

      Progress bars are calculated using one of four options:

      – Total progress of required fields completed
      – Tab progress
      – Upload progress (when form is submitted)
      – Custom (you determine the value)

      Without knowing which fields are required you’ll never know which fields the user is going to complete and thus you won’t be able to determine 100% progress.

      Many thanks

      Mark

    • #87728
      tomek
      Participant

      Oh, that’s a bad news.
      I want the Progress bar to reflect overall number of fields and user’s journey.

      I was hoping that i can do it by making all fields required but there is a problem,
      for example i have a URL field “Your LinkedIn Profile” but i assume that user may not have a LinkedIn profile..

    • #87729
      Mark Westguard
      Keymaster

      Sorry about that, but I don’t understand how you would calculate progress unless the fields are required.

      The Progress element is intended to show the percentage of a task being completed, 0% = incomplete, 100% = fully completed.

      https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress

      If a field is not required it is considered optional, therefore the progress of the form should not increase regardless of whether the field is completed or not.

      If you had 5 fields, none required, what would constitute 20% or 40% of the form being completed (for example)? There is no way to calculate it.

      Without required fields there is no way of showing what percentage of the form has been completed. If a user opts to not complete a field, you’d get a progress that does not equal 100%.

      For your LinkedIn example, you could perhaps have a checkbox that says ‘Do you have a LinkedIn profile?’, if checked you could show the required LinkedIn profile URL field. That way if they don’t have a profile it would be excluded from the progress because it is hidden.

      You could possibly achieve what you need with have hidden fields for each field that would contain -1 or 1 (I’m not sure why you would use -1) but it would be quite a lot of conditional logic to do that and would make it difficult to manage.

      I’m not aware of any other form plugin that calculates form progress in the way you are stating but if you can give me a working example maybe I can look into adding this to WS Form for you.

      Many thanks

      Mark

    • #87730
      Mark Westguard
      Keymaster

      Another option is you could write some custom JavaScript yourself to do this and set the value of a progress field.

    • #88161
      tomek
      Participant

      thank you Mark

      Unfortunately I am not a js developer so i’ll try with build-in conditional logic tool

Viewing 5 reply threads
  • You must be logged in to reply to this topic.

Login