HELP - email address problem - need to reset a variable
I created a form that will be submitted to certain different email addresses based on an option selected from a drop-down list (named Customer).
I tried another script posted here, but that was based on the assumption that there was only one choice per email address in the list.
I wrote this on the change event of my list. I want the variable "emailAddress" to adopt the correct email address, based on the value of the option selected from the list:
var emailAddress = "[email protected]";
if (Customer.rawValue = "3"|"4"|"7") {
emailAddress = "[email protected]";
else if (Customer.rawValue = "5"|"8"|"15"|"20"|"21"|"26") {
emailAddress = "[email protected]";
else if (Customer.rawValue = "9"|"10"|"13") {
emailAddress = "[email protected]";
else {
emailAddress = "[email protected]";
Then I copied this (from the other topic), on the click event of a regular button ,which calls for a second, hidden button:
EmailSubmitButton1.resolveNode("#event").submit.target = "mailto:"+ emailAddress;
EmailSubmitButton1.execEvent("click");
The form worked fine the first time, but after that, all submissions are going to [email protected] I'm thinkking that the variable emailAddress has now a fixed value, and does not change.
I am new to Javascript, so I might have not written the code properly, any help will be greatyl appreciated!
Thank you.
Daeveed:
I think your javascript syntax is problematic. Instead of the syntax
if (Customer.rawValue = "3"|"4"|"7")
try
if (Customer.rawValue == "3"|"4"|"7")
Note the double equals sign. That's the equality comparison operator in javascript. The single equals is assignment.
if that still doesn't work, try
if ((Customer.rawValue == "3") || (Customer.rawValue == "4") || (Customer.rawValue == "7"))
Hope this helps.
Similar Messages
-
I have got a Activation Lock on my iPhone and I need to get it activated. I don't know what Apple ID I was using with my iPhone. It shows as U***@h******.uk which is too short to be my email address. I have reset all my Apple ID passwords and none are activating my iPhone. I have also been into the apple store and they have tried to find out the Apple ID my iPhone was using but this was not successful. The serial number of my iPhone is: C32JN641DTWF
You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
My Apple ID -
i want to change my apple id password,but for this i have to ans my security ques,i cmpltly clueless about answer,as i created my apple id 2 years ago. but at tym pf registration of apple id i didnt give any email address to reset security ques,so am stucked with my password,now i added credit card detail to my apple id,so i wanna change password. so help me to reset me my security questions.
Thanks for the questio. I understand you wish to reset your password for your Apple ID. You can do so at http://iforgot.apple.com - You'll have two options: Email Authentication (if you have access to your primary email address) and answer security questions.
If you wish to learn more about security questions and the rescue email address, see the following articles:
Apple ID: All about Apple ID security questions
http://support.apple.com/kb/HT5665
Rescue email address and how to reset Apple ID security questions
http://support.apple.com/kb/HT5312
If you continue to have issues, please feel free to contact us using the information in this resource:
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699
Thanks,
Matt M. -
I have a problem that my phone only vibrates but does NOT ring any more. No matter what I try to do with settings turning off "silent" or whatever nothing helps. Do I need to reset. what are the consequences of resetting?
What a numpty! Yes of course you're right.
Couldn't find the answer when searching the forum but then came accross this.
Next dumb question coming up! :-( -
I do forgot my Apple ID security question, please help me how to rescue email address or how to reset Apple ID security questions?
From another post:
On your browser, whether Safari, Google Chrome or otherwise, navigate tohttps://appleid.apple.com.
Once here click Manage your Apple ID button and sign into your iCloud account. Here, on the left side select Password and Security and this will list options on the right side. You should be able to see an option to reset your security questions.
Note other links in realtion to rescue email address:http://support.apple.com/kb/HT5312
If you cannot see or reset your security question, or even obtaining an error, then you would have to contact Apple directly: http://support.apple.com/kb/HE57. Here you would explain the issue, transfer you to an Account Security Agent who will be able to veritfy your identity and assist you in the resetting of you security questions. -
i reset my ipone that i got from my nephew and i need to reactivate the iphone but i dont know his password and it has been locked, he doesn't remember his email address or password to reset his apple id, what can i do to get the iphone activated
Send him this link and tell him to reset/find the information for his Apple ID.
(113663) -
Today is April 10, 2013. I try to login to iTunes connect and I keep getting the message "An error has occurred processing your request. Please try again later or send an email for assistance." It never tells us what email address we need to write to.
The problem was solved by Apple Technical Help. The process is as flollows:
1. Open Safari
2. Menu item Safari-Reset Safari - remove all website data - reset
3. Now if you try to login on iTunes connect it will work. -
HT5312 Rescue email address and how to reset apple I'd security questions
Rescue email address and how to reset apple I'd security questions
The instructions are on the page that you posted from. If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then using steps 1 to 5 on that page will give you a link to send reset info to your rescue email address.
If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you you will need to contact iTunes Support / Apple to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use. -
I don't have the option to change my security questions, but can't remember the answers. What can I do? I have given 2 rescue email addresses already and can reset my password.
Ajb1111 wrote:
I don't have the option to change my security questions, but can't remember the answers. What can I do? ...
See Here... Apple ID: Contacting Apple for help with Apple ID account security
ask to speak with the Account Security Team... -
i was unable to reset my security questions, and i do not have a rescue email Please i need to reset them to be able to use my apple id again normally
halaalsalhi wrote:
i was unable to reset my security questions, and i do not have a rescue email
See Here > Apple ID: Contacting Apple for help with Apple ID account security
Ask to speak with the Account Security Team...
Or Email Here > Apple Support iTunes Store Contact -
How do i Rescue email address and how to reset Apple ID and security questions
how do i Rescue email address and how to reset Apple ID and security questions
this may help http://support.apple.com/kb/HT5312
-
I forgot the password to my rescue email address, how can i reset my security questions?
i forgot the password to my rescue email address, how can i reset my security questions?
You won't be able to change your rescue email address until you can answer your questions, if you can't get the password for that email account reset then you will need to contact Support in your country to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset you can then use the steps half-way down this page to update your rescue email address for potential future use : http://support.apple.com/kb/HT5312 -
I recently changed my email address and need to change my icloud account on both my itunes and iphone. How do I do this without completely wiping the phone.
Also I tried to update to iOS6 and it is asking for my password under my old signin and locked me out of my phone.
What can I do?
ThanksThis explains how to change your ID: http://support.apple.com/kb/HT5621. After changing your ID you will need to go to Settings>iCloud, delete the existing account (which only deletes it from your device, not from iCloud), then sign back in with the new ID. To avoid losing photo stream photos, save them to your camera roll before deleting the existing account.
If you are signed into your account on your Mac, you will need to go to System Preferences>iCloud, sign out, then sign back in with the new ID. -
How on earth do I update my Apple ID to my new email address? I keep getting moved to 'change my password' sites, but I have a new email address and need to update my Apple. Frustrated!!
Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
Create a new email address, for example at Yahoo or Gmail, or anywhere convenient (or you can use an existing address as long as it has never been associated with an Apple ID).
Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
Where it says 'Apple ID and primary email address' and gives your current ID email address, click 'edit'.
Enter your new address and click 'Save changes'.
Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support. -
I'm trying to restore my iCloud back up on my new iPhone 5s and keep getting "could not sign in your apple Id or password is incorrect. I noticed that the Id it's showing is not my complete email address. I've reset my password 5 times. It accepts my password when I install as a new phone. How can I resolve this so I can restore my back up?
Hello jwpg,
Thank you for the details of the issue you are experiencing after restoring an iCloud backup. I recommend the following articles for an issue like this:
iCloud: "Incorrect Apple ID or Password" alert when setting up iCloud after upgrading to iOS 7
http://support.apple.com/kb/TS5207
iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
http://support.apple.com/kb/TS5223
Thank you for using Apple Support Communities.
Best,
Sheila M.
Maybe you are looking for
-
got a question for all you peeps dos anyone know about i phones i have a i phone 3gs which i got unlocked i did a master reset or summin and just had a pic of apple so i plugged it in i tunes downloaded and it now says no service at the top of phone
-
Performance tuning in oracle 10g
Hi Guys i hope all are well,Have a nice day Today i have discuss with some performance tuning issue recently , i joined the new project that project improve the efficiency of the applicaton. in this environment oracle plsql langauage are used , so if
-
Running forefront protection 2010 for exchange. The version of Exchange we are running is Exchange Server 2007 sp3 rollup 13. I am seeing that half our engines are not updating for forefront. Currently we are running version 10.1.0746 sp1 for Forefro
-
IPod touch (4th generation) panic.list problem
iPod Touch 4gen started having panic.plist error reports in diagnostics and also preformed a self-reboot when in the middle of watching a video (kernel abort type 4)
-
Recent installation update fails with Yosemite
hello, please help! installation of new update fails continuously after all recommended fixes have been attempted_ including successful uninstall and restart. please help if you can! thank you