GithubHelp home page GithubHelp logo

iframe-form's Introduction

Netomi Iframe Form

Homepage

Functionality

✅ Form is loaded in the iframe.
✅ The form has fields like Name, Email address, DOB, Contact number, Country and State.
✅ Users can see countries list in a drop down menu.(Countries list is pre-populated via an API call.)
✅ If a country is selected, only the states of the selected country will be populated in the state dropdown menu.
✅ Added these validations in the form fields:

  • Name: Length should be between 4-10 characters.
  • Email address: should only support valid email address
  • Contact number: mobile number should be of 10 digits.
  • Country, State, Name are mandatory fields.

✅ If all fields are valid, show the success message “All fields are valid” on the parent window or the error message.

👨‍💻 Demo

Try out the website : Netomi Iframe Form

👨‍🔧 Tech Stack

ReactJs CSS

🛠️ Installation Steps

  1. Fork this repository.
  2. Clone your forked copy of the project.
  3. Create a .env file at the root of the project folder and add the following environment variables:
REACT_APP_COUNTRY_API_URL=https://raw.githubusercontent.com/stefanbinder/countries-states/master/countries.json
  1. Install dependencies using npm install command.
  2. Run the app using npm start command.

iframe-form's People

Contributors

rishipurwar1 avatar

Stargazers

Sanchit Barjibhe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.