Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a custom list form in InfoPath, and successfully deployed it to a sharepoint list. it's contains several text boxes, and dropdown lists. the dropdown lists pull data from a separate sharepoint list. one dropdown is retrieving a column that has alpha-numeric character (A-F), and gives a validation error "only positive integers allowed". I have double checked that no validations have been enabled.

thanks, Jason

share|improve this question

4 Answers 4

Marek is partially correct, but his answer needs some clarification.

First, open the form in InfoPath.

Click the field you want to edit and then the Control Tools/Properties tab. Click the Edit Choices button in the ribbon.

In the Drop-Down List Box Properties dialog box, you're likely to see the entire default value in the Entries field. Click the Select XPath button to the right of the Entries field. Select only the top-level of the list item in the next dialog box.

That will automatically populate the Value and Display name fields below the Entries field.

Now click the Select XPath button to the right of the Value and/or Display name fields and select the ID for the Value and the field name for the Display name field.

That fixed it for me.

share|improve this answer

Your column is required, uncheck required and the error will go away. a validation rule would replace your required option.

share|improve this answer
    
Okay, I understand that i should change the value from d:title to d:ID, but when i do that, the textboxes that are supposed to be populated are still blank when I make a selection –  user14302 Jan 22 '13 at 9:38

I discovered solution in this post: http://iouchkov.wordpress.com/2011/08/24/list-form-with-multiple-selection-list-box/

share|improve this answer
1  
Welcome to SharePoint Stack Exchange! While this may theoretically answer the question, we prefer inclusion of the essential parts of the answer here, and to provide the link for reference. See How to Answer for general guidelines. –  Alex Angas Aug 24 '11 at 10:18

My guess is that the error is thrown by a SharePoint field that's is a lookup and it expects an internal ID of list item, not its actual value (visible in the dropdown list).

Setting up dynamic drop downs in the out of box SharePoint forms

If you get an error that says Only Positive Integers Allowed, you're trying to save a string into a column that is expecting a number. Most likely the Sub Project drop down's value is set to a string but because the column is a lookup, it needs to be a number instead. To fix this error, right click on the Sub Project dropdown and choose Dropdown list properties. Then underneath Entries, change the Value from d:Title to d:ID. After you republish the form, the form should start saving properly.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.