LogoLogo
  • Adapptio User Documentation
  • Getting Started
    • Quickstart
    • Architecture Overview
      • Views
      • Actions
      • Integrations
      • API Endpoints
      • Routes
      • Events
      • Assets
    • Editor
      • Main Menu
        • Create New Resources
        • Manage the Application
        • Monitoring Errors
      • Main Toolbar
        • Deploying the Application
        • Opening the Application
        • Preview Mode
        • Error Monitor
      • Components Panel
        • Components
        • Inspector
        • View Settings
      • Outline Panel
        • Data Variables
          • State Variable
          • Data From Action
      • Data Explorer
      • Console
    • Playground
  • Working with Adapptio
    • Best Practices
    • Tutorials
      • 1. Hello World
      • 2. Visualize Data from API
      • 3. Advanced Layout Application
      • 4. Application with In-Memory Database
    • How To
      • Custom Auth
      • Action Logic
        • Transform Node
      • UI Logic
        • Logout
        • Conditional Render
        • One Of
      • Data & Dynamic values
        • Custom Variable
        • Data from Action
        • Dynamic Value
        • Change Value from Event
        • Loading Data from Action to Form
        • Sending Data to Action from a Form
        • Server-side Dropdown Autocompletion
      • Visual
        • Styling Icon Button
      • Layouts
        • Centered Box
        • Header & Sidebar Layout
        • Grid Form Layout
        • Stretched Layout in Row
    • Components
      • Composed Chart
      • Advanced Table
      • Custom Component
    • Examples of Applications
      • SaaS Platforms
      • Customers Portals
      • Information Systems
      • Internal Tools
        • Color Picker
      • IoT Applications
      • Smart Portals
      • Analytics & Calculators
      • Statistics & Monitoring Panels
      • API Data Visualization
      • Simple Games
  • DEPLOYMENT
    • Cloud Hosted
    • Self Hosted
  • REFERENCE GUIDE
    • Components List
      • Application Header
      • Box
      • Container
      • Grid
      • Sidebar Layout
      • View
      • Text Input
      • Number
      • Checkbox
      • Option
      • Date and Time
      • File Upload
    • Properties
      • ACCEPT
      • CUSTOM PLACEHOLDER
      • DESCRIPTION
      • ENABLED
      • FONT SIZE
      • FOREGROUND COLOR
      • FORM DATA KEY
      • HEADERS
      • ICON
      • ID
      • LABEL
      • METHOD
      • MULTIPLE
      • MAX FILE SIZE
      • REQUEST TIMEOUT
      • REQUIRED
      • READ-ONLY
      • SIZE
      • TEXT ALIGNMENT
      • TEXT STYLE
      • URL
      • UPLOAD IMMEDIATELY
      • VALIDATE
      • VALUE
    • Functions
      • Array
      • Date
      • Generators
      • JSON
      • Logic
      • Math
      • Object
      • String
      • Types
      • Util
  • Support
    • Get in touch
    • Release Notes
  • Legal
    • Terms and Conditions
    • GDPR
Powered by GitBook
On this page
  • What We Are Going to Do
  • 1. Prepare a superior Grid
  • 2. Create a Form Header
  • 3. Placing a Form Components
  • 4. Adding Logic to Range Text Field
  • The Conclusion

Was this helpful?

  1. Working with Adapptio
  2. How To
  3. Layouts

Grid Form Layout

PreviousHeader & Sidebar LayoutNextStretched Layout in Row

Last updated 3 years ago

Was this helpful?

The Grid layout is commonly used to make forms, even for canvas fields gathering a lot of different components with fixed positions.

What We Are Going to Do

1. Prepare a superior Grid

The list of components can look complicated, but it is easily more than you think. Let's prepare a basic structure with Grid.

  1. Create a new View and name it gridForm.

  2. Place a Container, name it cntMain, and set up properties as follows:

    1. Horizontal Alignment -> Center; Vertical Alignment -> Middle; Item Flex -> Stretch

  3. Into cntMain put a Box called it gridBox. Its properties are the following:

    1. Vertical Alignment -> Middle; Background -> #FDFEE2; Shadow -> Medium; Padding -> Wide; Width -> 70%;

    2. Optionally set up Height -> 500px what is handy for working with a Grid at the beginning. You can delete this property at the end of this tutorial.

  4. Place a Grid into gridBox and name it gridForm. Set up its Item Flex -> Stretch and keep original Columns -> 12.

2. Create a Form Header

Playing with design is essential. Building applications is not just about functionality but even also about feeling.

  1. Place a Container and name it gridHeader.

    1. Set up its properties as follows: Horizontal Alignment -> Center; Vertical Alignment -> Middle.

    2. Screen Base Position -> X -> 3; Y -> 3; Width -> 6; Height -> 8

  2. Put two Text components into the gridHeader and name them formName; subTitle

    1. forName properties: Value -> "Adapptio Grid Form"; Text Style -> Bold; Font Size -> XXXLarge

    2. subTitle properties: Value -> "Easy, Intuitive and Fast Composition of A Forms"; Font Size -> Medium

3. Placing a Form Components

Place all forms components into the gridForm following step by step.

  1. Spacer -> ID -> spacerHeader; Foreground -> TEXT; Height -> 1px; Spacing -> Narrow;

    1. Screen Base Position -> X -> 1; Y -> 11; Width -> 10; Height -> 1

  2. Options -> ID -> fldGender; Add two Items -> Male Female; Placeholder -> "Gender";

    1. Screen Base Position -> X -> 1; Y -> 14; Width -> 2; Height -> 6

  3. Text Input -> ID -> inpFirstName; Label Value -> "First Name"

    1. Screen Base Position -> X -> 1; Y -> 20; Width -> 3; Height -> 6

  4. Text Input -> ID -> inpSurename; Label Value -> "Surename"

    1. Screen Base Position -> X -> 1; Y -> 27; Width -> 3; Height -> 6

  5. Text Input -> ID -> inpEmail; Label Value -> "Email Address"

    1. Screen Base Position -> X -> 1; Y -> 34; Width -> 3; Height -> 6

  6. Text Input -> ID -> inpOccupation; Label Value -> "Occupation"

    1. Screen Base Position -> X -> 1; Y -> 41; Width -> 3; Height -> 6

  7. Text Input -> ID -> inpSatisfactionOutput; Value -> //*adding logic in upcoming paragraph

    1. Screen Base Position -> X -> 8; Y -> 14; Width -> 3; Height -> 4

  8. Options -> ID -> optField; Add two Items -> I will stay faithful to the Adapptio I'm not interested in the product; Type -> Radio Group

    1. Screen Base Position -> X -> 4; Y -> 13; Width -> 4; Height -> 12

  9. Range -> ID -> rngSatisfaction; Label Value -> "Product Satisfaction"

    1. Screen Base Position -> X -> 8; Y -> 19; Width -> 3; Height -> 6

  10. Text Area -> ID -> txtMessage; Placeholder -> "Let us know how happy you are with Adapptio"; Label Value -> "Text Message"

    1. Screen Base Position -> X -> 5; Y -> 26; Width -> 6; Height -> 21

  11. Spacer -> ID -> spacerFooter; Foreground -> TEXT; Height -> 1px; Spacing -> Narrow;

    1. Screen Base Position -> X -> 1; Y -> 49; Width -> 10; Height -> 1

  12. Button -> ID -> btnSendMessage; Value -> "Send Message"

    1. Screen Base Position -> X -> 9; Y -> 51; Width -> 2; Height -> 4

4. Adding Logic to Range Text Field

Making the rngSatisfactionOutput life is realized by referencing values from the existing Range component.

  1. Set up rngSatisfactionOutput Value -> Æ’x("From " + rngSatisfaction.value.from + "% to " + rngSatisfaction.value.to + "%")

"From " + rngSatisfaction.value.from + "% to " + rngSatisfaction.value.to + "%"

The Conclusion

Creating forms using a grid layout is fast and effective, especially when you are familiar with form components and their properties. Try to make your form with referencing values.

The new form based on the Grid layout