How to submit a multiple-selection list box in an Infopath Sharepoint form as multiple entries on a Sharepoint list?
I would like to be able to submit an Infopath form with a multiple selection list box in Sharepoint as multiple entries on a Sharepoint list.
For example, a user has to complete the following fields:
First Name:
Last Name:
Favorite Color (can select more than one):
[] Blue
[] Red
[] Yellow
[] Green
If the user picks blue AND red and submits the form, the Sharepoint list would feature TWO entries, both with their first and last names, but with different colors in the "Favorite Color" column.
Please let me know if there is a way to do this. Any guidance would be helpful!
Hi redhotc,
According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
was fine.Please have a try as the below link:
http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support
Similar Messages
-
Set focus on item that selected in multiple-selection list box field in infopath
Hi
I have multiple-selection list box field in infopath that have for example 40 items. (I customize sharepoint list with infopath),then
publish infopath form in to sharepoint list. users want to add new item,when they selected or checked each item in multiple selection list box, after that automatically control focus on first item, but I want to focus remain on that item
I was selected. Why this happen?! I also set postback settings to “never” in multiple-selection list box properties. But didn’t work.
Thanks.Hi,
According to your post, my understanding is that you wanted to find several columns based on user selection of checkboxes in one of the Multiple-selection List Box.
I recommend to customize the form to concatenate values from choice field (with multiple values) into single line text box, and then hide the fields based on the text box value.
We can follow the steps as following:
Add a text box control(filed 3) on the form to hold the value selection in the multiple selection list box.
Set the default value for the text box control as
substring-after(eval(eval(Value, 'concat(., ";")'), ".."), ";")
(you need to change the ‘Value’ in the formula to your multiple selection list box name: filed1).
Add the conditional formatting on the flied: flied 3 does not contain value (you need to change the ‘Value’ in the formula to your multiple selection list box value.).
In addition, you can add Formatting action to hide the text box control.
Here are the result screenshots for you to take a look at:
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to Save the multiple selection check box values into the database
i have the multiple selection check box implemented in UI through drop down list,i can choose the desired values from the drop down through checkbox, but i m unable to store these values and commit the values into the database all at a time.
You can access the values using listbinding and can then store them as a string by using a delimiter.
-
Can you calculate multiple text boxes to achieve a total value? If so how is that done? I am trying to create a order form where multiple items can be purchased but i would like the values of each item to calculate so I can achieve a total value.
Hi sashby51,
I've moved your discussion to the PDF Forms forum--the folks who visit this forum regularly should be able to point you in the right direction.
Best,
Sara -
"Multiple Selection Dialog Box" VI Question
I've downloaded the "Multiple Selection Dialog Box" program and it works great, except when I add *.txt to the 'Files of type' array and then save it. I close the program and then reload it again and the change I made is not present...what am I missing?
tksRight-click on the 'Files of Type' array and select 'Data Operations,' and then select 'Make Current Value default.' Save the VI.
You'll now not lose this on reopening the VI.
Khalid -
How can I create multiple selection check boxes in a report row?
Hello,
I'd like to know how a multiple selection checkbox can be created in report rows. In brief, I need to create a questionnaire template and each one of the questions will have multple options checkboxes, that means that the user can select more than one of the answers.
Should I use apex_item.checkbox ?. I have no clue here.
Please advice.
Thank you
Edited by: user9982480 on Jul 23, 2012 10:58 AMHi,
This might save your effort
http://www.apexsolution.de/questionnaire/
Regards,
Jari
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Hi
I want to allow the user to select multiple items via a checkbox displayed as LOV.
I've managed to display all the LOV entries as check boxes just by selecting a LOV but it only stores one of the items I've selected in that LOV.
I need a checkbox system that stores data like a shuttle control, i.e. 1:2:4:9 etc
Is this possible without using Add-on JavaScript library's?
Thanks
AdamYou can access the values using listbinding and can then store them as a string by using a delimiter.
-
How to get display the Select Spreadsheetdialog box?
Hi Team,
I am following http://help.sap.com/saphelp_nw70/helpdata/EN/45/6e983a53ad487fe10000000a114a6b/frameset.htm
"Keeping Settings" section
I am not able to se the step4.
any idea
VijayI got the solution
1. Right click on the GRID
2. Select u201CAll Available Formatsu201D and choose the type of format and click on u201CGreen Ticku201D button
3. Test if the pop is coming. I am able to get the popup after this.
Thank
Vijay -
Multiple selection of items in Choosefromlist in custom form
Hi All,
I have set multiselection in Choosefromlist for itemcode but i am not able to get its corresponding itemname while selecting multiple itemcode.
My code:
for (int i = 0; i < oDataTable.Rows.Count; i++)
oForm.DataSources.DBDataSources.Item("@TIS_PRCONAND_INP").InsertRecord(1);
valItemCode = oDataTable.Columns.Item("ItemCode").Cells.Item(i).Value.ToString();
valItemDesc = oDataTable.Columns.Item("ItemName").Cells.Item(i).Value.ToString();
valDefWhs = oDataTable.Columns.Item("DfltWH").Cells.Item(i).Value.ToString();
valUOM = oDataTable.Columns.Item("InvntryUom").Cells.Item(i).Value.ToString();
oForm.DataSources.DBDataSources.Item("@TIS_PRCONAND_INP").SetValue("U_ItmCode", pVal.Row - 1 + i, valItemCode);
oForm.DataSources.DBDataSources.Item("@TIS_PRCONAND_INP").SetValue("U_ItmDesc", pVal.Row - 1 + i, valItemDesc);
if (pVal.Row + i == oDBDataSource.Size)
oForm.DataSources.DBDataSources.Item("@TIS_PRCONAND_INP").InsertRecord(oMatrix.VisualRowCount);
oForm.DataSources.DBDataSources.Item("@TIS_PRCONAND_INP").SetValue("LineId", pVal.Row + i, pVal.Row.ToString());
oMatrix.LoadFromDataSource();
In case of single selection it gives me proper result.Hi Pravin,
Here is the loop for the multiselection:
for (int i = 0; i <= oDataTable.Rows.Count - 1; i++)
string ItemCode = Convert.ToString(oDataTable.GetValue("ItemCode", i));
string ItemName = Convert.ToString(oDataTable.GetValue("ItemName", i));
Now set ItemCode and ItemName anywhere as you want.
Hope it helps.
Thanks & Regards
Ankit Chauhan -
Trying to retrieve the editValue of a list box selection with multiple selections
I have a requirement to display the text and the value of a multiple choice list box but as soon as there are multiple selections the value displayed is the rawValue.
My code is something like this:
verifSubTaskDescID.addItem(this.editValue);
verifSubTaskDesc.addItem(this.rawValue);
When "this" which is a list box with ["a","first"],["b","second"] is set to a or b it works perfectly, displaying "a" in the ID and "first" in the Desc as follows:
a first
OR
b second
but when I select both this list looks like this:
first first
second second
Any ideas on how to preserve the letters without making the code too complex or hard to maintain??
Thanks!!!Hi,
you can use a for loop to get all selected values from a choice list.
This could look like this.
This sample script goes to the exie event of the choice list.
It refers to the dataNode which holds the multiple values.
The for loop the then extracts the selected values and their associated display items.
var r = ""
for i = 0 upto $.dataNode.nodes.length - 1 do
r = Concat(r, $.dataNode.nodes.item(i).value, " ", $.getDisplayItem(i + 1) )
endfor
Textfield1 = r -
Change from 4.5 to 5,1 with multiple select list boxes
Had a multiple select list box which worked fine in 4.5 i.e
a comma seperated list would be passed to the corresponding set method
in the bean. We switch to 5.1 and this no longer works any one know of
the solution or a work around to the problem
Hugh McBride
[email protected]
Vladimir,
I am using a JSP/Java Beans design where the name of the
set
method in the bean match the name of the ui component so when the form
is submitted the method in the bean is automatically called. The method
request is a workaround but one we wanted to avoid using
Thanks
Hugh McBride
[email protected]
Vladimir Andral wrote:
> How are you getting the values? request.getParameter()?
>
> You should be using request.getParameterValues() if the parameter
> has more than one value.
>
> Check out the documentation for the HttpServletRequest interface.
>
> --
> Vlad
>
> Hugh McBride wrote in message <[email protected]>...
> >Had a multiple select list box which worked fine in 4.5 i.e
> >a comma seperated list would be passed to the corresponding set method
> >in the bean. We switch to 5.1 and this no longer works any one know of
> >the solution or a work around to the problem
> >
> >
> >Hugh McBride
> >[email protected]
> >
-
How can I create a XMP List with multiple selection
Hello,
I try to build my own XMP custom panel. Herefore I need a couple of lists with the possibility for multiple selections (e.g. the choice for one language or multiple languages).
But how is it possible to integrate a list into a panel? There is no XMPList inside the custom folder. I have experimented with the standard mx:list and an array collection for data binding into the list. But how can I write the user selection into an XMP field? Example: In the List the user choose three languages (DE, EN, FR). Is it possible to collect the choice into a string and to write the result into an XMP standard field (e.g. dc:description)?
A further question is, if it's possible to use the "HTTPService" to bind an external xml-file with the languages and other informations into the panel or is it only possible to work with an array collection inside the code?
Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<fi:XMPForm
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
xmlns:Iptc4xmpCore ="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
label="XMP-Custom Panel"
initialize="ds.send()"
>
<!-- Each namespace prefix that is used within an xmpPath-attribute,
MUST BE registered at the top of EACH panel where it is referenced -->
<fi:XMPNamespaces>
<fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
</fi:XMPNamespaces>
<fi:XMPForm>
<mx:HBox width="100%" height="26" verticalAlign="middle">
<mx:HRule width="50%"/>
<mx:Label text="Allgemeine Metadaten" fontSize="12" fontWeight="bold"/>
<fi:XMPSeparator width="50%"/>
</mx:HBox>
<fi:XMPFormItem
label="Titel"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Titel"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Druckkennzeichen"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Verfasser"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
<fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Versionsnummer"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
<fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
</fi:XMPFormItem>
<mx:HBox width="100%" height="26" verticalAlign="middle">
<mx:HRule width="50%"/>
<mx:Label text="Enthaltene Sprachen" fontSize="12" fontWeight="bold"/>
<fi:XMPSeparator width="50%"/>
</mx:HBox>
<!-- Beginn der Auswahl-Liste für die Sprachen -->
<mx:Script>
<![CDATA[
import flash.events.MouseEvent;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
private const NL:String = "\r";
// A data provider created by using ActionScript
[Bindable]
private var subscriptions:ArrayCollection =
new ArrayCollection
{data:0, label:"Deutsch"},
{data:1, label:"Englisch"},
{data:2, label:"Französisch"},
{data:3, label:"Italienisch"}
[Bindable]
private var market:ArrayCollection =
new ArrayCollection
{data:0, label:"(Bitte Marktversion auswählen)"},
{data:1, label:"Marktversion Deutsch (M_DE)"},
{data:2, label:"Marktversion Englisch (M_EN)"},
{data:3, label:"Marktversion Frankreich (M_FR)"},
{data:4, label:"Marktversion Italien (M_IT)"}
[Bindable]
private var documenttyp:ArrayCollection =
new ArrayCollection
{data:0, label:"(Bitte Dokumenttyp auswählen)"},
{data:1, label:"Gebrauchsanweisung"},
{data:2, label:"Ersatzteilkatalog"},
{data:3, label:"Service-Anleitung"},
{data:4, label:"Etikett"}
]]>
</mx:Script>
<fi:XMPFormItem label="Sprachauswahl" width="100%">
<mx:List
id="userSubscriptions" rowCount="4"
allowMultipleSelection="true" width="100%"
dataProvider="{subscriptions}"
/>
</fi:XMPFormItem>
<mx:Text text="* Mehrfachauswahl möglich." fontWeight="normal" fontSize="10"/>
<!-- Ende der Liste für die Auswahl von Sprachen -->
<fi:XMPFormItem
label="Marktvariante"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
<fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{market}"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Dokumenttyp"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
<fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{documenttyp}"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Stichworte"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
<fi:XMPTextArea/>
</fi:XMPFormItem>
<mx:HBox width="100%" height="26" verticalAlign="middle">
<mx:HRule width="50%"/>
<mx:Label text="Metadaten Photoshop" fontSize="12" fontWeight="bold"/>
<fi:XMPSeparator width="50%"/>
</mx:HBox>
<fi:XMPFormItem
label="Originalname FA"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS1">
<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Fotoauftragsnummer"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS2">
<fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
</fi:XMPFormItem>
<fi:XMPFormItem
label="Interne Anmerkungen"
labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%" id="PS3">
<fi:XMPTextArea/>
</fi:XMPFormItem>
<mx:Text text="* hier steht eine kleine Erläuterung" fontWeight="normal" fontSize="10"/>
</fi:XMPForm>
</fi:XMPForm>
Any suggestions?
Thank you in advance.
MarkusHi Markus,
the FileInfo SDK does not offer a ready-made list component allowing for multi-selection.
So you would need to implement one using the FileInfo SDK API. Your component "XMPList" would inherit from mx:list and would need to implement the XMPRead and XMPWrite events and talk to the XMP using the IXMPAccess interface within those event handlers.
Please have a look at the Programmer's Guide, section "XMP Flex components" and at the API description available in "docs" for further guidanc.
Hope this helps
Kind Regards
Jörg
Adobe XMP -
Multiple-Selection List Box Values in Multiple Columns
I am using InfoPath 2010 with SharePoint 2013. I have a form with a multiple-selection list box which has A LOT of choices. Instead of displaying all the choices in one column, is it possible to display the values of my list box in several
columns?Hi Andrea,
I agree with Brij, one multiple-selection list box is associated with one list field, we cannot use the one multiple selection list box value for other multiple selection list boxes, we need to create multiple choices for each multiple-selection list box
control in InfoPath form.
Thanks
Daniel Yang
TechNet Community Support -
How to change the list box to F4 Help for Billing type in VF01
Hi All,
In VF01 for Billing type i am getting List box. Now I have to add one more field to that list box.
like F1 invoice
F2 Invoice returns.
or
Is there any possiblity of making it as F4 Help instead of List Box.
Please throw some lite on this issue.
Regards,
Rohit.Hi ,
The list box is getting the value from the table TVFK .
You can get the table name from the VALUE TABLE of FKART which is the domain
for the field Billing Type .
You need to Update the table TVFk programatically. Like - -
TABLES : tvfk.
tvfk-FKART = 'F1'. " Billing type
tvfk-KOPGR =
tvfk-VTEXT = 'Invoice '. " Billing type description
UPDATE TVKF FROM TVKF. " Update the table
Similarly you have to update the table by the F2 and and description.
tvfk-FKART = 'F2'.
tvfk-KOPGR =
tvfk-VTEXT = 'Invoice returns'.
UPDATE TVKF FROM TVKF.
Regards
Pinaki -
How to have multi select dropdowns for web request and adobe forms
Hi All,
I am working on interactive forms for CRM 7.0 using web request and ZCI layout.
When I say web request we define the fields required for the form in CRM that becomes the context for WDA and passed onto Adobe form.
This web request is a flat structure which mean if I have a node and attributes with in that you cant have multiple values to wards this node as in WDA.
Now My query:
I have a field called "xyz" since web request is a flat structure i just defined it as a string.
In WDA I made it a enumrated field and added key value pairs to it.
In Adobe form I binded this field to a WD native enum dropdown list every thing is fine untill here.
Now in the form I need this as a multiple select, so i changed the dropdown field to list box it works.
The form has to be submitted as a draft version when did so, it will not execute any APIs but saves the data to the web request.
When the same form is opened for the next time, with the data in web request it should reopen this field with the multiple seleced values high lighted.
since the field xyz is a single filed of string, how can i maintain multiple values in that...?
if there is a form status auto save function in Adobe form this might solve a bit but not sure when the form is opened 2nd time from web reqest view does it consider it as a new one or open the same form...?
I have such dropdown fields and problems including ones with depenedt values on one another.
I tried my best to explain the problem, if somebody can help me with this its much appriciated.
Note: Since this is dependent on CRM web request I am posting the same query in that block also apologies if this mean a duplicacy.
Thanks & Regards,
SaiI got the solution and problem is solved.
Iterating & processing a enumrated dropdown is like any other dropdown /list box in adobe forms.
Regards,
Sai Krishna
Maybe you are looking for
-
E72 unable to create new sip profile
I am trying to create new sip profile from options>settings>connection>sip settings nohing happens when I select new sip profile using default profile I hav already reset the phone using *#7780# but problem is still there please help ? Solved! Go to
-
Cannot install Crystal report 2008
Dear All, I am trying to instal CR_2008_SP01_for_B1 on my PC. I got a screen said "please wait while the installer finishes determining your disk space requirements" forever. If I hit cancel, it will cancel the installation. So it looks like the inst
-
Creating of Notes for Transaction Code RECN(Using Classes and Methods)
Hi Experts, I want to Create Notes for Transaction Code RECN, This should not done manually but should be done programatically. I had used the Class CL_GOS_SRV_NOTE_CREATE to create the notes.....but here comes the doubt for me.....note will be creat
-
Why do I have to render every video clip?
Every clip I put in FCE has to be rendered, why? Is there a setting I have to change? I have a canon hv-20 and I'm using the 1080i setting in the easy setup menu. Thanks for any help!
-
Oracle 9i to 10g for Developers
Hi, Can anyone point out what are the key features of Oracle 10g which were not available in 9i or were modified from 9i. I am looking from PLSQL Developer's perspective. I have found a few here: 1. Introduction of FLASHBACK VERSION QUERY 2. Change i