2

Possible Duplicate:
How do I change the selected option in a FogBugz drop-down field using jQuery (javascript)?

Hi,

I'm trying to use BugMonkey to pre-populate the email "From" address that is used when clicking on the "Reply" or "Email" buttons attached to case notes. (We have multiple mailboxes set up and FB sometimes defaults to an unexpected choice, which users are missing and so emails are going out from the wrong address.)

Looking at some other sample script on this site, I've come up with:

$(document).ready(function() {
    var textBox = $("#idDropList_sFrom_oText");

    if (textBox.length) {
        textBox.val('"Some Name" <some@email.address>');
    }
});

This does indeed change the value of the from field on screen, but the form still submits with the email address the page originally loaded with.

I've tried using Firebug to work out what I should be setting that I'm not, but of course it's all dynamic HTML with event hooks and I can't find the right bit of code. (I can see that the form is POSTing with an "sFrom" field, but it's not obvious how this is being set when I click on the "Send" button.)

Can anyone help or point me in the right direction?

Thanks,

- Lee

("Ask a question" seems to get me here at "submit a feature request"... I just want to ask a question, not submit a feature request, so I hope this is the right place to do that.)

flag
You will need the #sFrom element, see fogbugz.stackexchange.com/questions/8261/…. Your question pointed ME in the right direction, thanks! – Michel de Ruiter Sep 22 at 14:00
We changed that to "Submit Feature Request" because people were posting support requests here, then getting miffed that we weren't responding. We have a valid, responsive support channel at contact.fogcreek.com. If users specifically want to involve the community, they can do so here. If they need a timely answer, though, it's far better to contact directly. – Rich Armstrong Apr 12 at 11:48
you need to change the <select> tag, not the textbox. Here is a guide on changing droplists in javascript: fogbugz.stackexchange.com/questions/10411 – adambox May 16 at 18:01

closed as exact duplicate by adambox♦♦ May 16 at 18:01

1 Answer

0

It's best to contact us directly for questions like this.

link|flag
What does "closed as too localized" mean? – Lee Chapman Oct 5 at 21:07
We're trying to keep the site more useful to new visitors by only keeping questions that are likely to apply to more than a few users. We have plenty of support folks standing by to help you with this. (I'm looking at them right now!) – Rich Armstrong Oct 10 at 20:26
Are you saying your software is so counter-intuitive that people come here looking for answers to noddy questions? ;-) If questions aren't answered in a public forum, doesn't that just make it harder for other people to find the information they are after? Being able to ask your support folks is great, but I have to wait for a response - not least because we're in different time zones. Perhaps you could provide a dark corner somewhere here for more esoteric posters? – Lee Chapman Apr 11 at 20:16
Fair enough... Reopened. :) – Rich Armstrong Apr 12 at 11:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.