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

406
Views
why does return value rendered as undefined

my values render as undefined in the page as shown below

rendered page

or

Supplier undefined
Product Name undefined
Lot Number undefined
Available Items undefined

here is part where i get push the values

      function getItemInfo(){
    var barCode = document.getElementById("itemBarCode").value;
    
    google.script.run.withSuccessHandler(function(retVal){
      document.getElementById("itemSupplier").value = retVal.suppName;
      document.getElementById("itemProduct").value = retVal.prodName;
      document.getElementById("itemLotNum").value = retVal.lotNum;
      document.getElementById("itemRemain").value = retVal.itemRemain;
      document.getElementById("itemExpire").value = retVal.expire;

      M.updateTextFields()
    }).getItem(barCode)
  }

and values from the server is this

[ suppName: 'Mercury', prodName: 'Biogesic', lotNum: '912E8AY7C', itemRemain: 50, expire: Mon May 01 2023 15:00:00 GMT+0800 (Philippine Standard Time) ]

thank you

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!