Segment Output is a helpful tool that puts the results of a given calculation into words or images. Learn how to add and customize Segment Output in your calculator.
Written by Abdul Samad

Segment Output is a powerful feature in ActiveCalculator that allows you to present the results of a calculation in a more descriptive and engaging way, using either words or images. By defining segments based on the value of a formula field or any other input field, you can display a corresponding text label, description, and/or image that fits the calculated result.
In this tutorial, we'll cover:
Let's start by looking at how to use Segment Output for text-based results.
Consider a shirt size calculator that recommends a size (XS, S, M, L, XL) based on the user's height and weight. You can find a template for this example here: Calculate My Size Template
To see the calculator in action, check out this preview: Shirt Size Calculator Preview




- Label: Name your segment. This is the main text that will be displayed if the assigned formula or input field value falls within the segment range. - Description: Write a description for the segment that will appear under the segment label. - Start and End: Define the start and end values for the segment range. Segments should not overlap, as it may lead to incorrect results. If a result overlaps with a previous segment, the previous segment will take priority.


In addition to text, you can also use images in your Segment Output.
Consider a water intake calculator that displays different images based on the calculated water intake level. You can find a preview of this calculator here: Water Intake Calculator Preview



Choose the appropriate "Image style" option to control how the image is scaled and positioned within the element. There are three available options:
- Horizontal Alignment: - Left: Keeps the left part of the image visible when cropping. - Center: Centers the image horizontally, cropping equally from both sides. - Right: Keeps the right part of the image visible when cropping. - Vertical Alignment: - Top: Keeps the top part of the image visible when cropping. - Center: Centers the image vertically, cropping equally from top and bottom. - Bottom: Keeps the bottom part of the image visible when cropping.


You can use different formulas for each segment to determine visibility.



Note: The "Use Formula" option works with both text and image segment outputs.
Q: What happens if my segment ranges overlap? A: If a result overlaps with a previous segment, the previous segment will take priority. To avoid this, ensure that your segment ranges do not overlap.
Q: Is there a limit to the number of segments I can add? A: No, there is no set limit to the number of segments you can add to your Segment Output.
Q: Can I use both text and images in the same Segment Output? A: No, you can either use text or images in a Segment Output, but not both simultaneously. You can choose between text and image output using the "Use images" toggle in the settings.
Did this answer your question?