SOLVED

Re: Form field of percentages adding to 100%

Go to solution
Oliver_Zosel
Level 3

Form field of percentages adding to 100%

Looked around on the forum for this but wasn't able to find anything - does anyone have experience or recommendations for building a form that can ask how spend or time is distributed across 4-5 values and validate that those percentages add to 100%? Is this something better suited for a survey integration or custom Java JS (ty Sanford!)?

Message was edited by: Oliver Zosel

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Form field of percentages adding to 100%

Is this something better suited for a survey integration or custom Java?

JavaScript, not Java.

But yes, you can build this with JS . There's no built-in widget for it, but if you put a few <input type="range"> sliders on the form you can tie them together.  Really does require a spec for the look-and-feel, though. Checking percentages (math-wise) is the easy part.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Form field of percentages adding to 100%

Is this something better suited for a survey integration or custom Java?

JavaScript, not Java.

But yes, you can build this with JS . There's no built-in widget for it, but if you put a few <input type="range"> sliders on the form you can tie them together.  Really does require a spec for the look-and-feel, though. Checking percentages (math-wise) is the easy part.

Oliver_Zosel
Level 3

Re: Form field of percentages adding to 100%

Thanks Sanford, guess I'll start building that way.