Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9314513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:09:06+00:00 2026-06-19T02:09:06+00:00

I seem to be missing something with XPages. I have a button that has

  • 0

I seem to be missing something with XPages. I have a button that has server side JS which is attempting to get the value from the 2 existing fields on the document. I enter values in the form and the field values are empty when the button is clicked.

var doc:NotesDocument = currentDocument.getDocument();
var email = doc.getItemValue("email");
_dump("Email: " + email);
var password = doc.getItemValue("password");
_dump("Password: " + password);

I can see the values are empty in my log.nsf by using the “_dump” command.

When I use client side JS to grab the fields, they are populated — I can see in the alert statements:

var doc = document;
var email = doc.getElementById("#{id:email1}").value;
alert(email);
var password = doc.getElementById("#{id:password1}").value;
alert(password);

I tried a partial refresh on the panel where the email and password fields exist, but that still didn’t help.

Do I have to save the document first and grab the document again to get the field values? Do I have to pass the field values in client side JS and then pass in a scope (I don’t think that can be done from client side JS)? It is probably a simple solution but I am not sure why this is happening.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T02:09:07+00:00Added an answer on June 19, 2026 at 2:09 am

    Retrieve the values directly from the data source:

    var email = currentDocument.getValue("email");
    var password = currentDocument.getValue("password");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a feeling that I'm missing something obvious but can't seem to resolve
I know I must be missing something here, but I cannot seem to get
I think I'm missing something but I cant seem to get await to work
I must be missing something totally obvious but I can't seem to get the
I am close but seem to be missing something. I have dropped OpenLayers.js in
I know I am missing something simple but I can't seem to get my
I know I'm missing something obvious here but I can't seem to get my
Maybe I am missing something simple, but I can't seem to get my form
I'm probably missing something obvious, but I don't seem to be able to get
I'm really new to SVN and seem to be missing something here... I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.