Applying Rules to Tables

Comments

6 comments

  • Avatar
    Prajakta

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

     

    -Prajakta

    0
    Comment actions Permalink
  • Avatar
    DuWayne Caviness

    0
    Comment actions Permalink
  • Avatar
    Prajakta

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

    0
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink
  • Avatar
    Prajakta (Edited )

    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
    Comment actions Permalink
  • Avatar
    DuWayne Caviness

    Yes, that worked, thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.