Solved

Write or Call JavaScript function in SharePoint InfoPath 2010 form

Posted on 2013-01-27
3
1,920 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 50
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 (Microsoft MVP / EE MVE) 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

628 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