#CatalystServerless Hackathon 2022

#CatalystServerless Hackathon 2022


Verifying a PANID using regex

Validating input field values using Javascript.

function verify_pan(){

 

    //match pattern1

    let pin1 = document.getElementById("pin1").value.toUpperCase();

    let pattern1 = /[A-Z]/;

    let result1 = pin1.match(pattern1);

 

    //match pattern2

    let pin2 = document.getElementById("pin2").value.toUpperCase();

    let pattern2 = /[PCHABGJLFT]/;

    let result2 = pin2.match(pattern2);

 

    //match pattern 3

    let pin3 = document.getElementById("pin3").value.toUpperCase();

    let pattern3 = /[A-Z]/;

    let result3 = pin1.match(pattern3);

 

    //match pattern 4

    let pin4 = document.getElementById("pin4").value.toUpperCase();

    let pattern4 = /[0-9]/;

    let result4 = pin4.match(pattern4);

 

    //match pattern 5

    let pin5 = document.getElementById("pin5").value.toUpperCase();

    let pattern5 = /[A-Z]/;

    let result5 = pin1.match(pattern5);

 

    let panid= (result1!==null)&&(result2!==null)&&(result3!==null)&&(result4!==null)&&(result5!==null)

    if(panid==false){

      alert("Invalid PANID. Please check again")

    }



    • Announcements

    • Important Announcements in Support for Catalyst Features

      Hello Catalyst Users, This announcement is to bring to your notice some of the recent updates in our support for various Catalyst components, to ensure that your existing Catalyst applications function properly. You can continue to build robust applications
    • Introducing Catalyst 2.0, the simplest cloud-based pro-code development platform.

      Dear Catalyst Community, We are beyond thrilled to present you Catalyst 2.0—the new-age, pro-code development platform that redefines the way you build, deploy, and scale apps. Catalyst 2.0 is not a mere upgrade, but a significant leap into the future
    • Set budgets to optionally disable your Catalyst production environment

      Hello all,    We are pleased to inform you that you can now configure the automatic disabling of a project's production environment upon reaching a specified budget's threshold. Budget alerts in Catalyst facilitate setting usage limits in amounts or Catalyst
    • #CatalystServerless Hackathon 2022

      We are pleased to announce #CatalystServerless Hackathon with prizes worth $5000 up for grabs. Create a working prototype aimed to solve a critical business issue using Catalyst and stand a chance to win exciting prizes. The Hackathon will happen in 3
    • Share your interest to participate in the #CatalystServerless Blogathon

      Hi, we are working on announcing the next edition of the #CatalystServerless Blogathon. Please fill up this form to stay posted on all updates related to the Blogathon. https://zfrmz.com/JN9ChxPU9JQpPgB1vRp8

      Catalyst Community