Solved

Write or Call JavaScript function in SharePoint InfoPath 2010 form

Posted on 2013-01-27
3
1,884 Views
Last Modified: 2013-01-28
Dears,

I have a SharePoint 2010 Custom list and I used InfoPath 2010 to edit the form. Now I need to do some JavaScript in the form like when the user click Submit button then its need to check the validation by Using JavaScript code.

Is it possible to do it in InfoPath 2010?
0
Comment
Question by:mshaji
  • 2
3 Comments
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 38825313
Hello,

why do you want to do this in JavaScript? Can you not use the InfoPath validation for the fields?

Please explain what you are trying to achieve.

cheers, teylyn
0
 

Author Comment

by:mshaji
ID: 38825612
Dear,

My real goal is not to validate a InfoPath form by using JavaScript instead I need to do some calculation through JavaScript.

Please see my attached image that will tell you what I need to achieve.

Thank you
js.jpg
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 38825945
You can create a calculated value in Infopath that sums up all the fields. Or if you need the value to be a field, calculate its default value by adding up all the fields.

screenshot
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question