Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
How to set a list to multiple combination fields by name

var oCheckOptions = {
    Yes: [
        ["-"],
        ["Serviceable"],
        ["Unserviceable"]
    ],
    No: [
        ["Not Applicable"]
    ]
};

function SetCheckOptions() {
    {
        var lst = oCheckOptions[event.value];
        if((lst != null) && (lst.length > 0)) this.getField("B.Artic1").setItems(lst),
            this.getField("B.Artic2").setItems(lst),
            this.getField("A.Artic1").setItems(lst),
            this.getField("A.Artic2").setItems(lst),
            this.getField("A.Artic3").setItems(lst);
        else {
            this.getField("B.Artic1").clearItems(),
                this.getField("B.Artic2").clearItems(),
                this.getField("A.Artic1").clearItems(),
                this.getField("A.Artic2").clearItems(),
                this.getField("A.Artic3").clearItems();
        }
    }
}

I am a novice so thank you for your assistance.

My project is creating a dynamic PDF for mechanics. Based on the platform's configuration depends on the type of checks performed.

The problem I am running into is I am identifying each field. Is there a way to call all fields with "artic" in the name to simplify the code? Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!