Fill Value of textbox on the basis of other textbox Infopath - sharepoint

i am new to infopath. i want to set the value of textbox b based on the value of other textbox a from SharePoint list. In Infopath vsta, textbox a onchanged event i am setting the value of textbox b which work ok as far as i check through preview on infopath.
But when i deploy this simple form through administration approve template as content type to my sharepoint document library. the form opens in the web browser but on change event of textbox a is not working (asynchronously). instead it works when i hit the submit button.
submission logic is to submit this form to document library.
in infopath configuration i have given the form full trust level.
Any Idea why its not working as expected. or is this any other solution apart from infopath programming?

Text box properties -> browser forms -> "Always".
Presence of the OnChanged event handler does not trigger postback (which is needed as code runs on server, not in the browser).

Related

Changing value of a field in javascript for a form submitted in lotus notes

I have a form, which has a notes and a web sub form. On the web, on click on a button Save, value a field say "Test" must be updated to 1. When I click on save for a form submitted on web side the value of the field gets updated, but when I try to click on save (on web side) for a form originated on the notes side, the value doesn't get updated.
I have used
document.forms[0].TestField.value= "1"

Xpages chained djFilteringSelect in separate dialogs

I am trying to make a 2nd djFilteringSelect using a #Dbcolumn depending on the value selected in the 1st djFilteringSelect control. That's a common task, using a partial refresh. However, each of the controls is within a dialog control from the extension library. One dialog pops up, the user selects a value, and automatically the 1st dialog closes and the 2nd opens. YOU CAN'T SEEM TO REFRESH THE FIELD (I'm guessing b/c it's not in the DOM). I've tried writing the first value to to an computed field and/or a text box on the main Xpage using CSJS and then looking for that value for the second lookup. Also, tried with SSJS, etc. I tried do updates and writing to fields on either the onChange or on the click of button. How do I go about using the selected value of the first to do the lookup in the 2nd?
You can use a single dialog control where you hide and show the relevant controls. I am using this approach in several apps.

Percentage calculation from infopath to sharepoint

I am a newbie in sharepoint/infopath.
I am trying to edit an existing field in sharepoint which seems to be loaded from infopath.
The flow of the program is as follows:
I open a form (which is integrated using infopath) from sharepoint. The form has some multiple choice questions and at the end there is a submit button. After clicking "submit", I am transferred to a list view which displays the "number of correct answers" and "your percentage" columns (I can have multiple attempts and they are displayed in the list).
I am trying to edit the calculations of the percentage. When I open the infopath form, I can see that there is a field called "Your percentage". I displayed the setting and there is no formula.
Where can I edit that field?
Thanks!
Use the button Rule Inspector to check all the rules cotained on the form, the button is located on the data ribbon:
There you can see all the rules, just look up for the one that calculates the percentage.
Hope this helps.

Make few fields of SharePoint list infopath form read only

My requirement is New form should have all fields editable and Edit form should have few fields read-only (Like ID entered by user in New form for the item).
How is it possible through form customization done using Infopath.
You could have a checkbox or any bool control that gets checked when a form is initially filled out and submitted to a SharePoint list, have it change value "on-submit". When the form loads just add a rule that if 'existingForm' (or whatever you name the control) is checked and if it is then disable/or hide the control.
You could disable the controls, or you could hide them completely and display their values through a calculated field/value which is normally hidden.

Send Selected File Information to SharePoint Form in Dialog Box

I currently have a custom button in my SharePoint 2013 ribbon which should open a dialog box with a form. The button is only enabled when two or more files are selected. I would like to know how to send information about the selected files to the form.
You can send the selected files/item information to the form using query string parameters.
When u add custom action, in element.xml there is CommanUIHandler element in which you can define tokens as query string parameters to be replaced when custom action is clicked.
{SelectedItemId} and {ItemId} tokens can be your use.
Refer http://msdn.microsoft.com/en-us//library/ff458385.aspx

Resources