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

103
Views
Pass a Javascript value to Apex Application item

How to pass the value of retVal variable from this JS function to an application item, so I could store the value in the DB? This function open a prompt to enter the value.

function getEmailValue() {
           var retVal = prompt("Enter your Email Address : ", "your Email here");
           document.write("An Email will be send to : " + retVal );
        }

Note:

  1. This JS function runs from a JS file exists in Static Application Files it calls Ajax callback from APEX side.

  2. P12_PAUSE_EMAIL is an application item.

  3. I can't use page items or Dynamic actions as there is no actual page.

I tried apex.item , $v and $ , but it gives undefined object.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I wouldn't rely on using a prompt for this.

If you want a similar UI, you could simply use an inline dialog or a modal dialog page (have a look at the Universal Theme Sample Application for examples.

In either of these, you could have an item which you could then use directly (granted it's listed in the items to submit to your ajax callback see the pageItems attribute here ).

about 4 years ago · Juan Pablo Isaza Report
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!