MARKETPLACE
PLUGINS
MULTI-FIELD ARITHMETIC CALCULATOR
Multi-Field Arithmetic Calculator logo

Multi-Field Arithmetic Calculator

Published April 2026
   β€’    Updated May 2026

Plugin details

# Multi-Field Arithmetic Calculator β€” Plugin Guide
---

## πŸ‡ΊπŸ‡Έ English

### What This Plugin Does
This is a **non-visual controller element**. It sits invisibly on your Bubble page and evaluates arithmetic formulas using named variables you define. The results are exposed as **Bubble states** that you bind to Text elements, conditionals, or workflows.

---

## πŸ‡°πŸ‡· ν•œκ΅­μ–΄

### ν”ŒλŸ¬κ·ΈμΈ κ°œμš”
이 ν”ŒλŸ¬κ·ΈμΈμ€ **λΉ„μ‹œκ°μ  컨트둀러 μ—˜λ¦¬λ¨ΌνŠΈ**μž…λ‹ˆλ‹€. Bubble νŽ˜μ΄μ§€μ— 보이지 μ•ŠλŠ” μ±„λ‘œ μœ„μΉ˜ν•˜λ©°, μ‚¬μš©μžκ°€ μ •μ˜ν•œ λ³€μˆ˜λͺ…κ³Ό 계산식을 기반으둜 μ‚°μˆ  연산을 μˆ˜ν–‰ν•©λ‹ˆλ‹€. κ²°κ³ΌλŠ” **Bubble μƒνƒœ(State)** 둜 λ…ΈμΆœλ˜μ–΄ ν…μŠ€νŠΈ μ—˜λ¦¬λ¨ΌνŠΈλ‚˜ μ›Œν¬ν”Œλ‘œμš°μ— 바인딩할 수 μžˆμŠ΅λ‹ˆλ‹€.

Free

For everyone

stars   β€’   0 ratings
2 installs  
This plugin does not collect or track your personal data.

Other actions

Platform

Web & Native mobile

Contributor details

Quascist logo
Quascist
Joined 2024   β€’   1 Plugin
View contributor profile

Instructions

# Multi-Field Arithmetic Calculator β€” Plugin Guide
---

## πŸ‡ΊπŸ‡Έ English

### What This Plugin Does
This is a **non-visual controller element**. It sits invisibly on your Bubble page and evaluates arithmetic formulas using named variables you define. The results are exposed as **Bubble states** that you bind to Text elements, conditionals, or workflows.

---

### Element Fields (Properties Panel)

#### ── Input Fields ──
Up to **5 Field Name / Field Value pairs** (A1–B5):

| Field | Description |
|---|---|
| **A1 β€” Field Name** | Variable name used in your formula (e.g. `Price`, `Qty`, `A`) |
| **B1 β€” Field Value** | The numeric value, or a text option key if using Option Mapping |
| A2/B2 … A5/B5 | Same structure for fields 2 through 5 |

> ⚠️ Field names are **case-sensitive**. `Price` β‰  `price`. English letters only.

---

#### ── Option Mapping ──
Up to **5 Option Key / Option Value list pairs** (C1–D5):

| Field | Description |
|---|---|
| **C1 β€” Option Keys** | A Bubble list of text values (e.g. dropdown display values: `Small`, `Medium`, `Large`) |
| **D1 β€” Option Values** | A matching Bubble list of numbers (e.g. `1`, `2`, `3`) β€” order must match C |
| C2/D2 … C5/D5 | Additional slots for more option sets |

> This lets you map dropdown/option set text choices β†’ numbers without hardcoding. The plugin merges all 5 slots into one lookup table automatically.

---

#### ── Formula ──

| Field | Description |
|---|---|
| **E β€” Formula** | Arithmetic expression using your variable names. Supported: `+ - * /` and `( )` |

**Examples:**
```text
(Price * Qty) - Discount
(A + B) * C / 100
A * B + C - D
```

---

#### ── Output Formatting ──

| Field | Description |
|---|---|
| **F β€” Decimal Places** | Number of decimal digits in `result_text` (0–10, default: 2) |
| **G β€” Thousands Separator** | Toggle `,` grouping (e.g. `1,234.56`) |
| **H β€” Prefix** | Text prepended to result (e.g. `$`, `β‚©`, `Total: `) |
| **I β€” Suffix** | Text appended to result (e.g. ` pts`, ` kg`, `%`) |
| **J β€” Auto-Recalculate** | If ON, recalculates on every property change. If OFF, use the **Recalculate** action. |

---

### Exposed States

| State | Type | Description |
|---|---|---|
| **result** | number | Raw numeric result of the formula |
| **result_text** | text | Formatted string: prefix + number + suffix |
| **has_error** | boolean | `true` if the last calculation failed |
| **error_message** | text | Human-readable error description |

---

### Events

| Event | When it fires |
|---|---|
| **Calculation Complete** | After every successful formula evaluation |
| **Calculation Error** | When evaluation fails (bad formula, division by zero, etc.) |

---

### Actions

| Action | What it does |
|---|---|
| **Recalculate** | Manually triggers formula evaluation (useful when Auto-Recalculate is OFF) |
| **Reset** | Sets `result` β†’ 0, `result_text` β†’ empty, clears error states |

---

### Typical Setup Flow
1. Place the **Arithmetic Calculator** element on your page (it's invisible β€” size doesn't matter).
2. Set **A1 Field Name** = `Price`, **B1 Field Value** = (bind to your input's value).
3. Set **A2 Field Name** = `Qty`, **B2 Field Value** = (bind to your input's value).
4. (Optional) Bind **C1 Option Keys** and **D1 Option Values** if any field value comes from a dropdown.
5. Set **E Formula** = `Price * Qty`.
6. Configure **F–I** for formatting.
7. On a Text element, bind its value to `Arithmetic Calculator's result_text`.
8. Optionally use **Calculation Complete** event to trigger downstream workflows.

---
---

## πŸ‡°πŸ‡· ν•œκ΅­μ–΄

### ν”ŒλŸ¬κ·ΈμΈ κ°œμš”
이 ν”ŒλŸ¬κ·ΈμΈμ€ **λΉ„μ‹œκ°μ  컨트둀러 μ—˜λ¦¬λ¨ΌνŠΈ**μž…λ‹ˆλ‹€. Bubble νŽ˜μ΄μ§€μ— 보이지 μ•ŠλŠ” μ±„λ‘œ μœ„μΉ˜ν•˜λ©°, μ‚¬μš©μžκ°€ μ •μ˜ν•œ λ³€μˆ˜λͺ…κ³Ό 계산식을 기반으둜 μ‚°μˆ  연산을 μˆ˜ν–‰ν•©λ‹ˆλ‹€. κ²°κ³ΌλŠ” **Bubble μƒνƒœ(State)** 둜 λ…ΈμΆœλ˜μ–΄ ν…μŠ€νŠΈ μ—˜λ¦¬λ¨ΌνŠΈλ‚˜ μ›Œν¬ν”Œλ‘œμš°μ— 바인딩할 수 μžˆμŠ΅λ‹ˆλ‹€.

---

### ν•„λ“œ ꡬ성 (Properties νŒ¨λ„)

#### ── μž…λ ₯ ν•„λ“œ ──
μ΅œλŒ€ **5개의 ν•„λ“œλͺ… / ν•„λ“œκ°’ 쌍** (A1–B5):

| ν•„λ“œ | μ„€λͺ… |
|---|---|
| **A1 β€” ν•„λ“œ 이름** | κ³„μ‚°μ‹μ—μ„œ μ‚¬μš©ν•  λ³€μˆ˜λͺ… (예: `Price`, `Qty`, `A`) |
| **B1 β€” ν•„λ“œ κ°’** | μˆ«μžκ°’, λ˜λŠ” μ˜΅μ…˜ λ§€ν•‘ μ‚¬μš© μ‹œ ν…μŠ€νŠΈ μ˜΅μ…˜ν‚€ |
| A2/B2 … A5/B5 | λ™μΌν•œ ꡬ쑰의 2~5번째 ν•„λ“œ |

> ⚠️ ν•„λ“œλͺ…은 **λŒ€μ†Œλ¬Έμžλ₯Ό ꡬ뢄**ν•©λ‹ˆλ‹€. `Price` β‰  `price`. 영문만 μ‚¬μš© κ°€λŠ₯ν•©λ‹ˆλ‹€.

---

#### ── μ˜΅μ…˜ λ§€ν•‘ ──
μ΅œλŒ€ **5개의 μ˜΅μ…˜ν‚€ / μ˜΅μ…˜κ°’ 리슀트 쌍** (C1–D5):

| ν•„λ“œ | μ„€λͺ… |
|---|---|
| **C1 β€” μ˜΅μ…˜ν‚€ (text list)** | Bubble ν…μŠ€νŠΈ 리슀트 (예: λ“œλ‘­λ‹€μš΄ ν‘œμ‹œκ°’: `Small`, `Medium`, `Large`) |
| **D1 β€” μ˜΅μ…˜κ°’ (number list)** | C1κ³Ό μˆœμ„œκ°€ μΌμΉ˜ν•˜λŠ” 숫자 리슀트 (예: `1`, `2`, `3`) |
| C2/D2 … C5/D5 | μΆ”κ°€ μ˜΅μ…˜ μ„ΈνŠΈλ₯Ό μœ„ν•œ 슬둯 |

> λ“œλ‘­λ‹€μš΄/μ˜΅μ…˜μ…‹μ˜ ν…μŠ€νŠΈ 선택값을 숫자둜 λ§€ν•‘ν•  λ•Œ μ‚¬μš©ν•©λ‹ˆλ‹€. 5개 μŠ¬λ‘―μ€ ν•˜λ‚˜μ˜ 쑰회 ν…Œμ΄λΈ”λ‘œ μžλ™ λ³‘ν•©λ©λ‹ˆλ‹€.

---

#### ── 계산식 ──

| ν•„λ“œ | μ„€λͺ… |
|---|---|
| **E β€” 계산식** | λ³€μˆ˜λͺ…을 μ‚¬μš©ν•œ μ‚°μˆ μ‹. 지원 기호: `+ - * /` 및 `( )` |

**μ˜ˆμ‹œ:**
```text
(Price * Qty) - Discount
(A + B) * C / 100
A * B + C - D
```

---

#### ── 좜λ ₯ 포맷 ──

| ν•„λ“œ | μ„€λͺ… |
|---|---|
| **F β€” μ†Œμˆ˜μ  자리수** | `result_text`에 ν‘œμ‹œν•  μ†Œμˆ˜μ  자릿수 (0~10, κΈ°λ³Έκ°’: 2) |
| **G β€” μ²œλ‹¨μœ„ κ΅¬λΆ„μž** | `,` ꡬ뢄 μ—¬λΆ€ (예: `1,234.56`) |
| **H β€” 접두어** | κ²°κ³Ό μ•žμ— 뢙일 문자 (예: `$`, `β‚©`, `합계: `) |
| **I β€” 접미사** | κ²°κ³Ό 뒀에 뢙일 문자 (예: ` 원`, ` kg`, `%`) |
| **J β€” λ³€κ²½ μ‹œ μžλ™κ°±μ‹ ** | ON이면 속성 λ³€κ²½λ§ˆλ‹€ μžλ™ 계산. OFF이면 **Recalculate** μ•‘μ…˜ μˆ˜λ™ μ‹€ν–‰ ν•„μš” |

---

### λ…ΈμΆœ μƒνƒœ (States)

| μƒνƒœ | νƒ€μž… | μ„€λͺ… |
|---|---|---|
| **result** | number | κ³„μ‚°μ‹μ˜ μ›μ‹œ 숫자 κ²°κ³Ό |
| **result_text** | text | 포맷된 λ¬Έμžμ—΄: 접두어 + 숫자 + 접미사 |
| **has_error** | boolean | λ§ˆμ§€λ§‰ 계산이 μ‹€νŒ¨ν–ˆμœΌλ©΄ `true` |
| **error_message** | text | 였λ₯˜ λ‚΄μš© μ„€λͺ… |

---

### 이벀트 (Events)

| 이벀트 | λ°œμƒ μ‹œμ  |
|---|---|
| **Calculation Complete** | 계산 성곡 μ‹œλ§ˆλ‹€ |
| **Calculation Error** | 계산 μ‹€νŒ¨ μ‹œ (잘λͺ»λœ 계산식, 0으둜 λ‚˜λˆ„κΈ° λ“±) |

---

### μ•‘μ…˜ (Actions)

| μ•‘μ…˜ | μ„€λͺ… |
|---|---|
| **Recalculate** | 계산식을 μˆ˜λ™μœΌλ‘œ μž¬μ‹€ν–‰ (μžλ™κ°±μ‹  OFF μ‹œ 유용) |
| **Reset** | `result` β†’ 0, `result_text` β†’ λΉˆκ°’, 였λ₯˜ μƒνƒœ μ΄ˆκΈ°ν™” |

---

### κΈ°λ³Έ μ‚¬μš© 흐름
1. **Arithmetic Calculator** μ—˜λ¦¬λ¨ΌνŠΈλ₯Ό νŽ˜μ΄μ§€μ— λ°°μΉ˜ν•©λ‹ˆλ‹€ (보이지 μ•ŠμœΌλ―€λ‘œ 크기 무관).
2. **A1 ν•„λ“œ 이름** = `Price`, **B1 ν•„λ“œ κ°’** = 인풋 값에 바인딩.
3. **A2 ν•„λ“œ 이름** = `Qty`, **B2 ν•„λ“œ κ°’** = 인풋 값에 바인딩.
4. (선택) λ“œλ‘­λ‹€μš΄ 연동 μ‹œ **C1 μ˜΅μ…˜ν‚€**, **D1 μ˜΅μ…˜κ°’** 에 리슀트 바인딩.
5. **E 계산식** = `Price * Qty` μž…λ ₯.
6. **F–I** 둜 좜λ ₯ 포맷 μ„€μ •.
7. ν…μŠ€νŠΈ μ—˜λ¦¬λ¨ΌνŠΈ 값을 `Arithmetic Calculator's result_text` 에 바인딩.
8. ν•„μš” μ‹œ **Calculation Complete** 이벀트둜 후속 μ›Œν¬ν”Œλ‘œμš° μ—°κ²°.

Types

This plugin can be found under the following types:
Background Services   β€’   Element   β€’   Event   β€’   Action

Categories

This plugin can be found under the following categories:
Technical   β€’   Utilities   β€’   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble