Skip to main content
Inspiring
Nov 21, 2026 12:01 PM UTC
Answered

I need help connect 3 text fields Text1,Text2,Text3 if Text1 is between 1-50 then show that number in Text2 if above 50 show in Text3 else both fields are empty.

I need help connect 3 text fields Text1,Text2,Text3 if Text1 is between 1-50 then show that number in Text2 if above 50 show in Text3 else both fields are empty.

    Nesa Nurani
    Nesa NuraniCorrect answer
    Community Expert
    Nov 21, 2026 12:03 PM UTC

    As custom validation script use this:
     

    var t1 = Number(event.value);
    var t2 = this.getField("Text2");
    var t3 = this.getField("Text3");

    if (t1 >= 1 && t1 <= 50) {
    t2.value = t1;
    t3.value = "";}

    else if (t1 > 50) {
    t2.value = "";
    t3.value = t1;}

    else {
    t2.value = "";
    t3.value = "";}

     

    1 reply

    Nesa Nurani
    Community Expert
    Nesa NuraniCommunity ExpertCorrect answer
    Community Expert
    Nov 21, 2026 12:03 PM UTC

    As custom validation script use this:
     

    var t1 = Number(event.value);
    var t2 = this.getField("Text2");
    var t3 = this.getField("Text3");

    if (t1 >= 1 && t1 <= 50) {
    t2.value = t1;
    t3.value = "";}

    else if (t1 > 50) {
    t2.value = "";
    t3.value = t1;}

    else {
    t2.value = "";
    t3.value = "";}

     

    Translate