Not sure if I need to be here or in Data Connections.... Not a noob, but also not a programmer or developer at all - just a guy who makes forms with IP 2003. I created a form that generates workorders that are sent to our trade partners. The form has to buttons and two dorresponding data connections - one for submitting to the SP forms library and one to set a value in a field and then submit to email via the second data connection. The second button is where the problem resides. I have the porperties of this button set to 'rules and custom code' and I have applied two rules - the first one sets the value of a date field and the second submits to the data connection. The data connection was set up with the wizard and I used a fx to retrieve the 'to' email address from a value in the form. I need to have specific text in the 'introduction box', but the field in the wizard only allows a limited number of characters - not enough to satisfy my requirements. I have scoured this forum (and others) and the bits of code that I was able to plagiarize did not work. The examples that were provided did not resemble my form code. What I found here always called the emailadapter and that object is not in my form code. When I am in the button properties and I click 'edit form code' this is what I get:
//======= //
The following function handler is created by Microsoft Office InfoPath.
// Do not modify the name of the function, or the name and number of arguments.
//=======
function CTRL50_5::OnClick(eventObj)
{
// Write your code here
}
None of the snippets that I plugged into the 'write your code here' worked, but maybe that is because they were for the emailadapter and I have an onclick event? Other than this one simple thing, the form works beautifully (believe it or not) and the information in the introduction field is purely for CYA - but necessary. Any help that anyone can provide is greatly appreciated.
Fishman