#CatalystServerless Hackathon : Part 3

#CatalystServerless Hackathon : Part 3

Validate occupation type

//validate occupation type

function occupation_type(){

  if(document.getElementById("salaried").checked==false && document.getElementById("selfemployed").checked==false){

    alert("Please select type of occupation");

  }

}

 

 

Validate Salary

//validate the salary

function validate_salary(){

  let salary = document.getElementById("salary");

  if(salary<1000 || salary>1000000){

    alert("Please enter a valid salaary between 1000 and 1000000")

  }

}

 

Next, we need to validate the phone number field.

//validate the phone number

function validate_phno(){

  let phno = document.getElementById("number");

  if(number.length<10){

    alert("Please enter valid phone number with 10 digits"); digits");

  }

}

 

 

Now, we have setup the validation for the client side input fields.
    • Announcements

    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.
    • Introducing GenAI Features in Catalyst QuickML

      Hi everyone, Building machine learning models can often feel slow and complex, especially when teams wait for perfect certainty before testing their ideas. But in reality, faster progress comes from early experimentation—trying out models quickly, learning
    • Announcing Deprecation of Catalyst File Store, Event Listeners, and Cron

      We would like to announce that the following Catalyst features are now in their deprecation phase and will reach End Of Life (EOL) on 30 April, 2026- Catalyst File Store Catalyst Event Listeners Catalyst Cron New users who sign up for Catalyst from today
    • React Nexus 2025 Recap: Catalyst Slate in Action!

      Hey Catalyst Community! We recently attended the React Nexus 2025 conference, an exciting gathering for frontend enthusiasts and React developers. Our team had an incredible time presenting and conducting a hands-on workshop on Catalyst Slate, our streamlined

      Catalyst Community