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 6590751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:20:22+00:00 2026-05-25T17:20:22+00:00

I have a popup and i select the value and it gets updated correctly

  • 0

I have a popup and i select the value and it gets updated correctly in my field.

var boolArray = ['Yes', 'No'];    
textField.value = boolArray[e.index] == undefined ? textField.value : boolArray[e.index];

But when i send the somevalue to my service, it does update incorrectly. for instance if i select Yes, it send NO and Vice Versa.

var somevalue = e.index === undefined ? '' : e.index;
  • 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-05-25T17:20:22+00:00Added an answer on May 25, 2026 at 5:20 pm

    change the first line to var boolArray = ['No', 'Yes'];

    I believe you want to show this way:

    • if e.index=undefined, textField.value=textField.value and
      somevalue=””
    • if e.index=0, textField.value=”No” and somevalue=0
    • if e.index=1, textField.value=”Yes” and somevalue=1

    In short, 1 means yes, 0 means no

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have popup-window in my script. I use window.open, but almost all browsers block
I have a modal popup that initially shows some content but expands a div
ok so i have some select tags of cities <select onchange=storeCity(this.value, false) name=search[city] id=search_city
I have the following form: <select name=size> <option value=>Please Select</option> <option value=1>Medium</option> <option value=2>Large</option>
Ok so i have this <select class=something> <option value=''> Select a Project </option> ---
I have a popup search box that is shown when the user mouses over
I have a popup menu that has a few items in it. Option 1
I have a Popup defined like this: <Popup Name=myPopup StaysOpen=True Placement=Bottom PlacementRectangle=0,20,0,20 PlacementTarget={Binding ElementName=myPopupAnchor}>
I have a popup function in a program that works well, be re-loads the
I like to have a popup modal dialog that need to show the list

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.