Tag Info

New answers tagged

0

I think you are not seeing values on a New Item form for the Created By field because the item isn't created yet, so there are no creator. I replicated the issue, and the value only appear on "Edit"/"View" form. For the additional information on the creator user, you could access the User Profile Web Service (located in ...


0

Not sure what version of InfoPath you're using, but I was able to create cascading dropdowns on an InfoPath 2007 form using Rules. When the first field isn't blank, populate the second dropdown using a data connection that filtered its values based on the value of the first dropdown.


1

You can write your own asmx webservice and deploy to virtual directory under sp application. Pass the current user info to this webservice and do operations what you need.


0

There's a lot of behind-the-scenes work InfoPath Forms Services on your SharePoint server has to do to render your form in a browser. You can tweak some performance-based settings in Central Administration, especially postback, the number of times a browser has to communicate with the server. Rajan Kapoor offers some tweaks on how to limit postback: ...


0

You can add a javascript file using the content web part. You can do this by Edit page -> Add web part -> Media and content -> Content editor -> Add Edit the source of the web part and add the following code into it: ​<script src="/sites/subsite/list/SiteAssets/file.js" type="text/javascript"></script><script ...


0

I have the same problem, and neither solution works for me. On the server, the number of decimal digits is 2, and the same for the client - but it still shows 3 in the browser. Also, I don't want to allow others to edit the column, so can't make it editable. Best bet is to use SharePoint Manager which does allow you to change the format, or you can use a ...


0

I had this problem in the past (about a year ago, was for SharePoint 2010) the only way that I was able to work around this was to use the InfoPath filler client instead of browser based forms. This probably isn't what you are looking for. Some of the other suggestions you'll probably get are to use JavaScript to get your form back to the top (or that it ...


1

There are 2 schools of thought, you give vendors AD accounts in your network and give them access to log into your environment and access the information necessary. A lot of people are shying away from this approach because they don't want to deal with identity management and credentials for non-employees. The emerging trend is to use Office 365 and ...


1

If you have the privileges to do so, make a change in the system registry. [HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\InfoPath\Designer\RestrictedFeatures] "CodeAllowed"=dword:00000001 Restart InfoPath and the Programming option should be available from the Tools menu.


0

Eric is right: your validation is failing because the condition is still not met. Were you absent is equal Yes and Reason for Absence is blank should be the validation rule because if you don't include something on the "reason for absence" field the rule is true but not satisfied


0

When I recreate this scenario, everything lines up for me in the view and in the sent email. The default margins for the combo box are 1 all around and for the calculated value they are Top: 1, left: 1, right: 1, bottom: 0, perhaps yours is different? Padding is also Top: 1, Left: 1, Right: 1, Bottom: 0 Perhaps it is just a margins or padding issue?


1

As I recall in this scenario, you have to check that the Were you absent field is Yes and the the Reason for absence field is blank (or empty, I forget off the top of my head). Once it is not blank (or empty) then the validation passes and the form could be submitted.


0

While using REST webservice we have to follow these steps in InfoPath form Manage Data Connections -> Add Select Create a new connection to: -> Receive data -> Next Select the source of your data = REST Web Service -> Next Web service details. Enter "http://pesdd:7789/GlobalService.svc/PhaseDataByProjectAndPhaseID?prjct_id=" ->Next Uncheck the Automatically ...


0

When I do this same test and I put my form URL .xml as a link into a word doc, then CTRL + Click to open it I get an "Open, Save or Save as" box, if I choose "Open" it opens in the InfoPath filler client. I know the file associations can mess with this as some people have another application as their default XML editor and it opens there. Perhaps you can ...


1

Are you sure the field name is same as internal name? Title field is always same, no matter external or internal but other fields, especially the ones with the spaces between them, are different. Best way (for debugging) is to remove all fields and add 2-3 fields at a time and then run your code but to avoid wasting time, i would suggest check the internal ...


0

You don't need Event Receiver, rather you can do this with custom code along with your InfoPath form. Open your form template in InfoPath Design mode. Under Tools, choose Form Options -> Category -> Security and Trust -> Full Trust. Form Options -> Programming -> C# Now Drop a Button -> Properties -> Edit Form This will bring up Visual Studio Add ...


0

after-properties and before-properties doesn't work in all types of SharePoint event handlers such as synchronous and asynchronous. After properties should be used only when the event context is Item-updated event. Below code can help in disabling the subsequent events this.disableeventfiring(); //your update code.. // this.enableeventfiring();


0

SharePoint lists will have 3 default template pages when you open in designer. Dispform Editform Newform So based on your choice you can customize in designer or info path for a non code solution. In your case, you should include a script which does the show/hide actions in the disp form - for existing items.


1

You can do this by following steps Manage Data Connections -> Add Select Create a new connection to: -> Receive data -> Next Select the source of your data = SOAP Web Service -> Next Web service details. Enter http://serviceurl.asmx?WSDL -> Next Select your operation -> Next Using Set Value -> Choose input value to a valid (This is just for setting up the ...


0

You can do this using JavaScript. Add the below code in PreSaveAction function to check for duplicates: function check(){ var elements = document.getElementsByTagName("input"); var arr = new Array(); for(var i = 0; i < elements.length; i++) { ids = elements[i].id; val = elements[i].value; if(val == 'null'){ val = 0; } ...


0

I don't think you can fix this issue in SharePoint side. The best option is to create some script in Excel to remove this. http://stackoverflow.com/questions/5023686/cleaning-people-group-data-exported-from-sharepoint-2010-lists


1

No code needed. You could create a data connection to the file in the form library using Excel's Get External Data method and map the XML contents that comprise the file to Excel. In Excel, on the Data tab, in the Get External Data group, click From Other Sources. Choose From XML Data Import. In the Select Data Import dialog box, navigate to the form ...


0

This may work for some people who may have InfoPath installed on the server which I think is a bad practice. I had the exact same problem and I logged onto the SharePoint server, then in the site I opened the form for edit in InfoPath, and then I followed the same steps to create a Connection File.


0

Have you tried adding a Pause in your SharePoint Designer workflow? Add a Pause between copying the the user name string to the People or Group column and your impersonation step. It should last at least 1 minute. I had this same problem and adding the Pause to let the Person or Group column resolve the string did the trick.


1

If your SharePoint site supports browsing a document library with Windows Explorer, do that first and then run the following snippet from within a code module in Excel. The code loops through the library and captures any file with an XML file type: Dim strFile As String Dim strFileType As String strFile = ...


0

If you are very sure those 10 values are unique you can do it with a String comparison: =IF( ISNUMBER( FIND( "Six" ,"OneTwoThreeFourFiveSixSevenEightNineTen" ) ) , "Something" , "Nothing" )


0

You need to do it the hard way =IF(OR(MyField="1",MyField="2",MyField="3",MyField="4",MyField="5",MyField="6",MyField="7",MyField="8",MyField="9",MyField="10"),"Something","Nothing")


0

This seems like a known issue: https://support.microsoft.com/en-us/kb/2888015 Scenario 1 To work around this issue, remove the Microsoft SharePoint Foundation Support program component from the Office 2013 installation on the affected computer or computers. To do this, follow the “Install or remove individual Office program components” section of the ...


0

You want to create a new data connection to submit data as an email message and a new view with your message. Then create a rule on submit that changes the view to your new email view and fires the email submit data connection. As for the second scenario, aside from any customizations you want to include, you need to include in your rule a condition that ...


0

I usually handle this by creating a "fileName" field that is created either as a rule on form load or as a rule on submit. This creates a unique file name for your form, and allows it to overwrite previously saved forms on submit. The rule will be an "Action" rule that sets a fields value. Set the field's value to something uniqe. If the G/L is unique, ...


0

You need to create a section for each description. Then create a formatting rule for each section that hides it unless the criteria is selected. Here are the steps: On the home tab of the ribbon, under controls, select the desired amount of section containers. Still on the home tab of the ribbon, under rules, select "Manage Rules". For each newly ...



Top 50 recent answers are included