Create Calculator with the InfoPath Form Web Part

Hi,
I have gone through these steps
https://msdn.microsoft.com/en-us/library/office/ee559624(v=office.14).aspx#sectionSection1
on SharePoint 2013, and everything works except only one parameter will send data.  The last one set is the only one that will work.
Any ideas?
Thanks!

Change your button not to use the Submit type but rather to use the Rules and Custom Code type, then add a rule that does a submit plus whatever other actions you're doing.  Add a Close action as well if you want, but you should also then be able
to set the form web part to close on submit.  All of my forms are built like this, and I use them all in form web parts (I'm in love with them).
Oh, another thing I do is when my user submits, I switch to a new view that looks nice and has a submit confirmation.  At the point, the form doesn't even need to be closed, but I do have a close button just in case.
SharePoint Architect || Microsoft MVP ||
My Blog

Similar Messages

  • Infopath Form Web Part not showing form

    Hello,
    I recently edited a list form in a InfoPath 2010 and published it to my site.  When clicking on "Add new item" it works fine.  The new form shows up and all is well.  The idea though was to enable the form from a separate page by using
    the InfoPath Form Web Part.  We have other forms setup this way on our site that work fine, but for some reason, when I added the web part to the page, pointed it at the list and set the custom content types (only single option anyways as the list is
    built on a custom content type) nothing is displayed within the web part.
    I can't find any difference between my form and the already created forms, but as I didn't create the ones that are working I may have missed some setting.  There is no error, no message, just a blank web part... Actually, that's not true.  When I
    check in the page I see nothing.  But when I publish it, I see only a close link and a bit of a header div. 
    If anyone would happen to have seen this before, know what it is or know how to fix it I would be greatly appreciative.
    Thank you.

    Hi David,
    From your description, you published an InfoPath form to SharePoint list, and it worked well in the list. However, when you added an InfoPath form web part to another page, it displayed as image.
    I could not reproduce the issue, I just selected list and content type, left all other settings as default, it displayed as expected. Did I miss anything during reproducing your issue? Did you make any customization to web part or InfoPath form?
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • InfoPath Form Web Part breaking page left alignment

    I have tried both a wiki page and a web part page and met with the same results.  I am using the Oslo theme. I add two web parts (SharePoint List Filter and Listview App) and it works perfectly and the page looks normal.
    When I add the InfoPath Form web part (I have tried different layouts and different zones) it causes the left alignment of the page to be way off.
    See pics below.
    Any suggestions?
    Any help would be really appreciated!!

    Hi,
    We have reproduced this issue. The page left alignment is broken and the page is rightward after the InfoPath Form web part is added. It happens both on the wiki page and the web part page.
    Thank you for bring this issue to our attention, your time and efforts on this matter are highly appreciate. It could be a potential issue in SharePoint 2013.
    In our behalf, we will put your finding to our suggestion box and report it internally. If there is any update, we will keep you informed in this thread. 
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to create Reports for the infopath form data

    Hi All,
    I have a requirement to generate reports in SharePoint based on InfoPath form data which is submitted into form library. Do I need to store each InfoPath form data into SQL Database/MS Access Database. if yes, can any one  help me on this how
    to save InfoPath form data into DB while submitting into "Form Library". based on the data stored in DB how to create  and view the report in SharePoint?.
    Thanks in Advance,
    Satish
    Thanks & Regards Satish Dugasani

    Thank you for asking the questions for clarification, my requirement is like below
    1. Need to insert all infopath form fields data into Access Database when i am submitting to the Form library
    2. Create Access Reports like based on time period, based on submitter name, based on state, city, and combination of these etc.
    3. Sync Access Database every time i am updating the form
    4. View Access Reports in share point site
    PS: I worked on this like below approch
    1. Written Web Service to Sync Access Database for the Infopath form
    2. Create Access Reports
    3. Publish using "Publish to Access Services" by providing site URL it will create a subsite there i can able to see reports, tables, macros etc. but that is not an user friendly like i am not able to apply my branding because it is pointing to /_Layouts/accsrv/Modifyapplication.aspx.
    could any one suggest me on this.
    Thanks & Regards Satish Dugasani

  • Using "View Selector" in the List View Web Part, changes the web part page to the view selected's page.

    Hi,
    I am relatively new to Web Parts pages.  I created a page with list view web part and a Infopath Form Web Part, which are connect via the "Get Form From" option.  My users would like to be able to use views dependent on what
    they are looking for.  So I created different views.  However, when I select the view from within the Web Part, it changes the web part page to the list view page.  I must be doing something wrong.  How do I configure the list view to show
    the selected view and results within the existing "list view web part"?
    Thanks,
    Dwayne

    Hi
    Lindali,
    Sorry, but this has not been answered to my liking.  The "List View Web Part" has the ability for the user to select the view from within the web part, so there you should be able to select a different view and have it appear within the same web part. 
    Does anyone know how to complete this task?
    Thanks,
    Dwayen

  • How to simply add custom property to a HTML Form Web Part?

    Hello.
    Is it possible to add a custom property (like a date-field) to a HTML Form Web Part with help of JavaScript? I do not want to use Visual Studio / Nappa etc. Is this possible in an easy way?
    Thanks for your help.

    Hi,
    Based on your description, my understanding is that you want to count the date between today and the latest event date.
    You can create a calendar in a page firstly, then add a content editor web part rather than the html form web part, as html form web part can't place the Jquery element.
    Then you can firstly read the date field value of the calendar list using JavaScript Client Object Model and then calculate the difference between two date values using Jquery. You can add the code directly in the content editor web part.
    Here are some detailed code demos for your reference:
    Get SharePoint calendar list field value using JavaScript Client Object Model:
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script>
    $(document).ready(function(){
    SP.SOD.executeFunc("sp.js", "SP.ClientContext", retrieveListItemsCal);
    function retrieveListItemsCal() {
    var clientContextCal = new SP.ClientContext.get_current();
    var oListCal = clientContextCal.get_web().get_lists().getByTitle('Calendar');
    var camlQueryCal = new SP.CamlQuery.createAllItemsQuery();
    AllItemsCal = oListCal.getItems(camlQueryCal);
    clientContextCal.load(AllItemsCal);
    clientContextCal.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededCal), Function.createDelegate(this, this.onQueryFailedCal));
    function onQuerySucceededCal(sender, args) {
    var listItemInfo = '';
    var listItemEnumeratorCal = AllItemsCal.getEnumerator();
    var htmlCal = '';
    while(listItemEnumeratorCal.moveNext()) {
    var oListItemCal = listItemEnumeratorCal.get_current();
    htmlcal= oListItemCal.get_item("Start Time").format("MMMM d, yyyy"));
    break;
    function onQueryFailedCal(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    Calculate the difference between two dates:
    http://stackoverflow.com/questions/2609513/jquery-calculate-day-difference-in-2-date-textboxes
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Jerry Guo
    TechNet Community Support

  • Code in HTML Form Web Part

    Hello,
    I have no coding background whatsoever but I've recently found 2 pieces of coding that:
    1). changes the default calendar overlay colors to colors I have picked out
    2). collapsing Tasks with Subtasks by default
    Both actually worked great when I added the code to the HTML Form Web part but here is the problem:
    We use two different Project communication tools - SharePoint and PWA. 
    In PWA I only used the code to collapse the tasks with subtasks - worked like a charm.
    In SharePoint, I have the project calendar which has the code for color change (works great) and a task list that I would like it to show collapsed as default (did not work).
    Question: can I not have two "pieces" of code doing two different things on one page in SharePoint?  Am I just putting the code in wrong?
    Thanks for your help.

    Thanks for your response.  For whatever reason, I cannot post a screenshot.  Support could not provide a solution as well... in any case.  I basically added a web part in SharePoint: HTML Form Web Part, selected 'edit web part', clicked on
    'Source Editor' in the Form Content and inserted this code to change the calendar overlay colors:
    <style type="text/css">
    .ms-acal-color6{
     BACKGROUND-COLOR: #F77F00
    .ms-acal-selcolor6{
     BACKGROUND-COLOR: #F77F00
    .ms-acal-apanel-color6{
     BORDER-COLOR: #C3B7AC; BACKGROUND-COLOR: #F77F00;
    .ms-acal-color4{
     BACKGROUND-COLOR: #7FBA00
    .ms-acal-selcolor4{
     BACKGROUND-COLOR: #7FBA00
    .ms-acal-apanel-color4{
     BORDER-COLOR: #C3B7AC; BACKGROUND-COLOR: #7FBA00;
    .ms-acal-color7{
     BACKGROUND-COLOR: #3D8E33
    .ms-acal-selcolor7{
     BACKGROUND-COLOR: #3D8E33
    .ms-acal-apanel-color7{
     BORDER-COLOR: #C3B7AC; BACKGROUND-COLOR: #3D8E33;
    .ms-acal-color1{
     BACKGROUND-COLOR: #00A3DD
    .ms-acal-selcolor1{
     BACKGROUND-COLOR: #00A3DD
    .ms-acal-apanel-color1{
     BORDER-COLOR: #C3B7AC; BACKGROUND-COLOR: #00A3DD
    .ms-acal-color5{
     BACKGROUND-COLOR: #0072C6
    .ms-acal-selcolor1{
     BACKGROUND-COLOR: #0072C6
    .ms-acal-apanel-color1{
     BORDER-COLOR: #C3B7AC; BACKGROUND-COLOR: #0072C6
    </style>

  • Show all items in data form web part when no filter value

    I have connected a XSLT list view web part with a data form web part.
    The list view web part sends the connection parameter and the data form web part filters the corresponding content.
    I need the data form web part to show all the data in the list when the connection parameter is empty.
    Please let me know how i can implement this.

    Any ideas !!

  • Send the infopath form in email through code

    Hi,
    I have a custom list form and on button click I need to send email with the form in the body of the mail.
    Since I want to change the From Address, I cant use the email dataconnection with the infopath form.
    I need to write code to send mail. But how will I get the form view as the body of the mail.
    Could anyone please help me?

    Hi,
    Are you trying to submit an Infopath form by email or are you dealing with a "List" in SharePoint that you want to email out? Would you be able to clarify?
    Also, when you say you want to change the From address, will that be static or be different based on some condition/value?
    Pman
    http://www.pmansLab.com/

  • How to add the Note board web part to a page with powershell

    Hi everyone,
    I've been looking around everywhere but haven't seen it explicitly mentioned. 
    Does anyone know how to add the Note Board web part to a Team Site page, e.g. Non-publishing site, Left Zone, First webpart in the zone in powershell?
    Examples like this one http://adicodes.com/adding-web-part-to-page-with-powershell/ only talk about custom web parts uploaded from a local drive.
    The example here looks good - http://spcrew.com/blogs/lists/posts/post.aspx?id=21 but is it for the Page Viewer Web Part. How would you go about getting the correct name for the note board web part and configuring it? 
    Many Thanks,
    Ashley
    function main(){
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $url = "http://sp2010dev1/sites/test1"
    $OpenWeb = Get-SPWeb $url
    $OpenWeb
    $OpenSite = Get-SPSite $url
    $file = $OpenWeb.GetFile("http://sp2010dev1/sites/test1/SitePages/test1.aspx")
    $WebPartManager = $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
    Add-PageViewerWebPart "http://sp2010dev1/sites/test1" "http://sp2010dev1/sites/test1/SitePages/test1.aspx" "Body" 0 "SPCrew Site" "sp2010dev"
    $OpenWeb.Dispose()
    function Add-PageViewerWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
        $site = new-object Microsoft.SharePoint.SPSite($SiteURL)
        $web=$site.OpenWeb()
        $webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
        $webpart = new-object Microsoft.SharePoint.WebPartPages.PageViewerWebPart
        $webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::TitleOnly;
        $webpart.Title = $title
        $webpart.ContentLink = "http://www.spcrew.com";
        $webpartmanager.AddWebPart($webpart, $webpartzone, $index);    
        $web.Close()
        $site.Close()
    function Get-SPSite([string]$url) {
        New-Object Microsoft.SharePoint.SPSite($url)
    function Get-SPWeb([string]$url) {
        $SPSite = Get-SPSite $url
        return $SPSite.OpenWeb()
        $SPSite.Dispose()

    Hi,
    According to your post, my understanding is that you wanted to add the Note board web part to a page with PowerShell.
    The name of the Note Board web part is SocialCommentWebPart.
    I recommend to use the powershell code below:
    $pageUrl="http://sitename/SitePages/test.aspx"
    $SiteURL="http://sitename"
    $site = new-object Microsoft.SharePoint.SPSite($SiteURL)
    $web=$site.OpenWeb()
    $webpartmanager=$web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
    $webpart = new-object Microsoft.SharePoint.Portal.WebControls.SocialCommentWebPart
    $webpart.title="Note Board"
    $webpartmanager.AddWebPart($webpart, "MiddleZone", 0);
    $web.Close()
    Then the Note board web part will be added to the page.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is possible to take the Infopath form with two repeat section in one SharePoint list

    Is possible to take the Infopath form  with two repeat section in one Sharepoint list 
    Take two repeat section and put them one bellow to other one in a SP list.
    The motive is that the first repeat section is based in account own by the requestor and the second repeat section is when the requestor is doing backup time for some one else where need to log the amount of time that spend in the peer account.
    I have basic logic in the form when requestor said Are you doing backup for some else? and press YES it is be able to use the second repeat section.
     Le me know how much pain full is going tobe or not..
    –Q1: Is possible to do this ?  With codeless or not
    –Q2:What steps I need to do to accomplish this?  feasible or not
    the following picture give a better idea of what I am looking to accomplish:
    CRISTINA&amp;amp MICROSOFT Forum

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • My Client is having a serious problem with the Contact Form Widget

    My Client is having a serious problem with the Contact Form Widget that I can not figure out how to correct.
    I created a website for a client and inserted a Contact Form widget on their 'Contact Us' page. Whenever anyone uses the form, the e-mail my client receive shows my e-mail address as the sender. So, when they 'reply' to the e-mail, the reply is sent to me and not the person who sent the original message. This creates a major problem in that I get barraged with e-mail replies while my client's potential customers go without a response.
    When I look at  'Site Manager > System E-Mails > Workflow Information > E-mail From Address' on the site's Admin Console, it shows my e-mail information. Is this is what needs to be changed?  If it is, what needs to be placed in that field so that the e-mail my client receives shows the senders e-mail information in the 'From' field.  My client wants to be able to click reply and have the message sent to the right party. They would be very upset if they have to cut and past the senders e-mail address from the body text on every contact they receive.
    Their feeling is that if I can't find a way to make the contact form work the way it should, then it's useless to them.
    Can anyone help me figure this out? I really don't want to disappoint my first client.

    Are you on a plan that has the CRM feature that stores your customers' data? If so, the idea of the contact form is that you'll receive a notification that there's been an inquiry filled out on your contact form and there should be a link in that email notification that leads to the "Case" that was created when that customer filled out a contact form.  You can click that link and visit the case for that customer in your BC site and reply to them from there so that all of the correspondence is logged in the CRM for safe-keeping and for your records.
    If your client finds this is too much work to login to BC to reply every time, then you should check to see if you have the "Customer Service Ticketing" feature on your hosting plan.  This is a feature where you create a dedicated email account (like [email protected]) and the BC system will automatically login to that email account and pull any emails in that inbox and convert them to a customer case for the sender of the email and then it will send out a notification via email to any of the BC Admin users you delegate as "Customer Service Agents".  Since the CST integrates with the BC CRM it lets you reply directly within the email-- but when you reply it will be going to that same email address dedicated to the CST but once the CST service checks your email again and sees that you replied to this inquiry it will log your reply against the customer's case and sends your reply via email back to them so that all the correspondance gets logged on BC's CRM but you can still reply via email.
    There's no way to use the default web forms to update the "From" or "Reply-To" address.. it must come from an approved email address to avoid spam issues.  On most web services you cannot change the "from" address anyway but usually you can at least specify the "Reply-To" address so that when someone hits "reply" in their email client it will reply to whoever you setup as the "Reply-To" address.
    Here's some more information about CST: http://kb.worldsecuresystems.com/kb/customer-service-ticketing.html?bc-partner
    I don't think the CST feature is in the webMarketing BC plan-- I think it's only in the webCommerce plan so if you have less than an webCommerce plan you have to tell your client to reply through BC by clicking the link in the notification they get.  You can justify it by saying its one or two more steps but it keeps the entire convo on record in their CRM for easy referral later.

  • Remove filter from Html Form Web part

    Hi,
    I've created a HTML form web part and connected it to a document library web part. It filters fine and as expected, but the only way I found to remove the filter is to reload the entire page. As I have several html form web parts on the page, filtering on
    different columns, that is a quite unsatisfactory method. Isn't there a value I can pass to the connected web part that just means "any". I've tried to send empty strings or '*' or even '[everyone]' (for the modified by column) but nothing works.
    Is there really no way?
    Thanks!

    Hi,
    For your issue, you can use the Text Filter Web Part. In the Text Filter Web Part, you can send empty strings to the connected web part which means "any":
    For more information, you can have a look at the blog:
    https://support.office.com/en-us/article/SharePoint-lists-VI-Exciting-ways-to-display-your-list-data-4f24f5a6-9a82-497e-8965-6b9f98e03a01
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem with creating links with the WPC (SP14)

    Hi,
    I have a problem creating links with the WPC (SP14): When I want to create internal links (Browse and select the target item) via the right button (choosing a website as a reference link). If I do so I encounter the problems either that the linked site (outside the WPC) shows a blue background and/ or has no navigation frame (on the left side & no breadcrumb-navigation on top).
    If I create links with the left button in the WPC via URLs I have the problem with the inserted URL, because sometimes (I don't know why und when) some parts of the code in the URL changes, so that the linked Website is empty (besides the navigation fram - the content isn't displayed anymore). To me it looks like as if the originally website cannot be "found" anymore.
    Does anyone has the same problems and is eventually able to help me? This would be really great. Thanks!

    Hi,
    you have also to deploy the following file from Service Marketplace:
    Patch for SP14 for KMC WEB PAGE COMPOSER 7.00
    Than it will works. The best way is you deploy WPC SP 15.
    If you want i can send you this file via email.
    regards,
    Sharam
    Edited by: Seed mopo on Apr 28, 2008 11:45 AM

  • Render html in the Business Data web part (used for the BCS profile page)

    I am searching and indexing a webservice and pulling in external content, through SharePoint's BCS. I have used SharePoint Designer to make the connection and its a read only connection, we are not trying to write back to the external data source. The problem
    I have is that some of the columns are rendering the HTML as a string, with all of the HTML tags. For example, a column will render like this:
    &lt;p&gt; Onboarding, Recruiting &amp;amp; Talent Acquisition general information&lt;/p&gt;
    The profile page uses the business data web part and will accept custom XSL and I have modified the column that is rendering the html from:
    <xsl:value-of select="@u_cause" /> 
    to
    <xsl:value-of disable-output-escaping="yes" select="@u_cause" /> 
    The problem is that it does not make a difference the column will still render the HTML. Is there any other way to make the column render HTML?
    Joe Garcia

    Hi,
    According to your description, my understanding is that you want to render column value as the HTML format in the xslt list view.
    I suggest you can set the “disable-output-escaping” attribute like below, it will render as html:
    <xsl:value-of select="@MyColumn" disable-output-escaping="yes"/>
    Here are some detailed articles for your reference:
    http://sharepoint.stackexchange.com/questions/16089/unescape-html-from-list-column
    http://doitwithsharepoint.blogspot.com/2011/06/sharepoint-list-forms-display-html.html
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

Maybe you are looking for

  • How can I display all my e-mails.  Only some of them show up now...thanks to an apple representative in the apple store

    How can I display all my e-mails on all my Apple products?  Only some of them show up now...thanks to an apple representative in the apple store.  Also, he put my oldest emails in POP (???)

  • PDF attachment in MAIL when report generate

    Hi, i have following problem: I have form "Students, with parameters. In form is Print button which creates report and prints it . I need to make new button, which would acted following when button is pressed : "could just launch the creation of the

  • Bootcamp & lion

    I have a macbook pro and I have installed on it windows XP on a partition I did that with bootcamp, the question is if I upgrade and install Lion will I lose my Windows XP and all the stuff I use to work some times. thanks

  • AIR Installer.app does not launch

    Hi, I am trying to install AIR on a G3 PowerPC PowerBook that I have just formatted and installed Tiger on.  I ran the OS X updates and am now running OS X 10.4.11.  When I run the Adobe AIR Installer.app version 1.5.2 (downloaded from get.adobe.com/

  • /sbin/ldconfig lib* empty, not checked

    Hi I am installing arch on a net book and whenever I try to install something I get the error in the subject. Every package says this for lots and lots of librarys. I can't find any info on the issue apart from an old thread which I didn't understand