Inputs and Forms

Editable cells are the inputs to your NExS app. This guide covers how to configure inputs, add validation, and build interactive forms.

Defining Editable Cells

Use the editable (or input/inputs) keyword in your view configuration:

ABC
2viewSheet1!A1:G18
3editableB3:B8, C12

This allows users to edit cells B3 through B8 and cell C12.

Single vs. Multiple Inputs

You can list inputs on one line or split them for clarity:

ABCD
3editableB3:B8, C12, D5# All on one line

Or split them into logical groups:

ABCD
3inputsB3:B5# Personal info
4inputC12# Start date
5inputsD5:D8# Preferences

Both input and inputs work the same as editable.

Adding Comments

Document your configuration with comments (start with # or //):

ABCD
3inputsB3:B5# Customer name fields
4inputC12// Effective date

Input Types

By default, editable cells accept text input. Add attributes to create specialized input types.

Checkboxes

Checkboxes work well for yes/no questions, feature toggles, and boolean options. When checked, the cell receives the value 1; when unchecked, it receives 0. Your Excel formulas can then use these values in calculations or conditional logic.

ABCD
3inputsB10:B12checkbox

Radio Groups

When users need to pick exactly one option from a set, radio groups enforce mutual exclusivity. Clicking any option in the group sets that cell to 1 while automatically setting all others to 0. This is ideal for survey questions, plan selections, or any “choose one” scenario.

ABCD
3inputsC5:C8radioGroup

Email and Phone Validation

Adding email or phone as an attribute tells NExS to validate the input format before accepting it. Email validation ensures the value follows standard email format (like user@example.com), while phone validation checks for valid phone number patterns. Invalid entries are rejected, preventing malformed data from reaching your spreadsheet.

ABCD
3inputB5email
4inputB6phone

Required Fields

Marking inputs as required integrates with NExS’s form validation system. On its own, this attribute flags the field visually. Combined with the %REQUIRED button macro, you can disable submit buttons until all required fields contain values—preventing incomplete form submissions.

ABCD
3inputsB3:B6required

Combining Attributes

Apply multiple attributes by separating with commas:

ABCD
3inputB5required, email

This creates a required email field.

Access Control on Inputs

When multiple people use the same app, you often need different people to edit different fields. NExS provides granular control over who can modify specific inputs.

By Access Key

In Access Code apps, different access keys can grant different editing permissions. An admin might be able to edit configuration fields while regular users can only fill in their own data sections.

ABCD
3inputsB3:B5accessKeys: Admin
4inputsC3:C5accessKeys: User1, User2

Read vs. Write Access

Team mode apps can separate viewing and editing permissions. Use readACL to control who sees the view and writeACL to control who can modify its inputs. This lets you create dashboards where many people view the data but only designated users can make changes.

ABCD
3inputsB3:B5
4readACLuser1@example.com, user2@example.com
5writeACLadmin@example.com

Building Forms

Example: Contact Form

Excel layout (Sheet1):

AB
1Contact Us
2
3Name
4Email
5Phone
6Message
7
8[Submit]

NExS.app configuration:

ABCD
1appContact Form
2submitListsales@company.com
3viewSheet1!A1:B8
4editableB3required
5editableB4required, email
6editableB5phone
7editableB6required
8buttonA8

Cell A8 content: Submit {disabled: %REQUIRED, sendData: 'B3:B6'}

This creates a form where:

  • Name, Email, and Message are required
  • Email must be a valid format
  • Phone is optional but validated
  • Submit button is disabled until all required fields are filled
  • Clicking Submit emails the form data to sales@company.com

Example: Multi-Step Form

Use multiple views to create a wizard-style form:

ABCD
1appApplication Form
2noViewNavtrue
3viewSheet1!A1:F15
4nameStep 1
5editableB3:B8required
6buttonA14
7viewSheet1!A20:F35
8nameStep 2
9editableB23:B28
10buttonA33, A34

Navigation buttons:

  • Step 1, cell A14: Next {disabled: %REQUIRED, setView: 'Step 2'}
  • Step 2, cell A33: Back {setView: 'Step 1'}
  • Step 2, cell A34: Submit {sendData: 'A1:F35'}

Form Validation Tips

  1. Use required sparingly — Only mark truly essential fields
  2. Group related inputs — Logical sections improve user experience
  3. Provide clear labels — Users should know what each field expects
  4. Use format validation — Email and phone validation prevent errors
  5. Give feedback — Use conditional formatting to highlight errors

Next Steps