Skip to main content

Applying Rules to Tables

Comments

6 comments

  • Prajakta

    DuWayne, can you click on 'Rule Code' send the rule that you see there?

     

    -Prajakta

    0
  • DuWayne Caviness

    0
  • Prajakta

    Can you copy and send just the code? I will correct that code so it will do what you need.

    0
  • DuWayne Caviness

    var event = form.load;
    for (let i = 0; i < ModifyWhat.value.length; i++) {
    if ((Boolean(ModifyWhat[i].value)) && (ModifyWhat[i].value === 'Job Title')) {
    jobtitlemessage.visible = true;
    jobtitlemessage.printable = true;
    HowManyDays.visible = true;
    HowManyDays.required = true;
    HowManyDays.printable = true;
    } else {
    jobtitlemessage.visible = false;
    jobtitlemessage.printable = false;
    HowManyDays.visible = false;
    HowManyDays.required = false;
    HowManyDays.printable = false;
    }
    }

    0
  • Prajakta

    Try this code instead of what you have now:

    var event = form.load;
    jobtitlemessage.visible = false;
    jobtitlemessage.printable = false;
    HowManyDays.visible = false;
    HowManyDays.required = false;
    HowManyDays.printable = false;
    for (let i = 0; i < ModifyWhat.value.length; i++) {
      if ((Boolean(ModifyWhat[i].value)) && (ModifyWhat[i].value === 'Job Title')) {
        jobtitlemessage.visible = true;
        jobtitlemessage.printable = true;
        HowManyDays.visible = true;
        HowManyDays.required = true;
        HowManyDays.printable = true;
      } 
    }
    0
  • DuWayne Caviness

    Yes, that worked, thanks!

    0

Please sign in to leave a comment.