-
Succes !!! In my button I made a rule in my Rules and Custom code to use the main submit, edited the code like below and it works. I even got me a little success message. When I add a failure message the same way but with false it pops up right after the success one ( yes yes very funny :) )
function CTRL1_5::OnClick(eventObj)
{
if ...
-
Is there any way i can call a method in the manged code from the task pane? for instance a validate before save method?
Cheers
-
Great tutorial!
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3727 <-- I opened a new topic with a simular problem. Can someone help me out?
-
Can you use VB.Net then? It's just I am used to using VB 6.3 which is what Excel 2003 has (also so I can use the macro creator in Excel to create a macro and then I can view the script in its VB 6.3 editor for tips!)
-
Hi Shiva, thanks for the reply.
Our sharepoint library name is called 'Our Forms' and our form is called 'form'. I am unsure about the restricted security you mentioned as I am new to Infopath. I have also tried coding the button and applying rules (data connection) to the button. I also tried 'tools' >> 'submitting forms'
Thanks,
Ali.
-
No just 1 dataconnection. I made a new test form with only 1 button to just try and make this program close happen. If I just enable the sumbit to sharepoint via the submit button and add that code as OnSubmitRequest in Script editor it just leaves the form open but submits. If i change the submit to to custom submit with codes and add that code ...
-
Ok,
I checked the code and I use it on Loading and Shutdown form events, but it didn't work well. On Loading Event it inserted data on lists but with no information that users wrote, it's like first insert without user intervention and then forget all about the form.
-
Hello,
Thanks to http://www.infopathdev.com/howto/tutorials/default.aspx?i=7bc880f391b84ea9b3b45c6fbecc07c6 this tutorial i was able to build a infopath form which submits data into sharepoint events.
It works well but it only works when you don't fill in a date. How do i get this form working with a date? I prefer to have a date chooser like ...
-
The decimal part indeed I have, shaved 10 years of my life, but it is working :) On to the next problem !! :)
-
Hi MicrosoftBob,
OK. Can you check once your sharepoint library path is available or not. May be your sharepoint library is not available for you.
Whichever it gives the sharepoint library path you can copy that path and paste it in new internet explorer. If it works your sharepoint library path is correct.