Hide/Show items in Multiple selection in InfoPath 2010 Form
I have an I an InfoPath 2010 browser enabled form with four sections. Inside each section is a checkbox and a textbox
What I need to do is, have a user select a desired items by checking the checkBox and the items that are not Checked are hiden. They can select (Checked) all the four CheckBoxes. I am using rules but can't seems to get this working. Any help will be appreciated.
Ebenezer
Ok, here is how you have to do , use expression as I mentioned in my previous post, and then use a condition like this
(../my:group1/my:field1 = string(true()) and ../my:group2/my:field4 = string(false()) and my:field6 = string(false())) or
(../my:group1/my:field1 = string(false()) and ../my:group2/my:field4 = string(true()) and my:field6 = string(false())) or
(../my:group1/my:field1 = string(false()) and ../my:group2/my:field4 = string(false()) and my:field6 = string(true()))
here I am checking for all three fields, if either of these is true then it will hide other section
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you
Similar Messages
-
Checked some items of multiple-selection list box when form loaded in infopath
Hi
I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
Thanks.Hi,
According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
I recommend to follow the steps below to achieve this goal:
Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
Set the Default Value of the Multiple-Selection List Box field.
Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
Repeat step3 based on the number of the items that you want to be pre-selected.
More information are provided in the link below:
http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
I am creating a browser based InfoPath 2010 form Calendar Filtering
using SharePoint 2010 Calendar List (All Events) and InfoPath 2010. This form has data connection to the Calendar list. Goal is to
compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
Select Year and Select Week. I also have common drop down called
Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
I am able to filter the list based upon Year and Week
on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
Year and Week. Or it needs to show all the values if I
select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
Thanks
Snehal H Rana
Thanks Snehal H.Rana SharePoint ConsultantI am creating a browser based InfoPath 2010 form Calendar Filtering
using SharePoint 2010 Calendar List (All Events) and InfoPath 2010. This form has data connection to the Calendar list. Goal is to
compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
Select Year and Select Week. I also have common drop down called
Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
I am able to filter the list based upon Year and Week
on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
Year and Week. Or it needs to show all the values if I
select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
Thanks
Snehal H Rana
Thanks Snehal H.Rana SharePoint Consultant -
Hide Particular Item Group from Selection Criteria of Sales Analysis Report
Hello Experts,
Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
I have one Item Group as 'Special Items'.
Now, when I open Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
Thanks in advance.
Best Regards,
Pankit ShethHi,
1. Not possible to put validation for selection criteria windows.
2. In standard, I don't think it is possible to hide only one item group.
3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
Thanks & Regards,
Nagarajan -
Multiple Select boxes in one form
Does anyone know if it is possible to have multiple select
boxes inside one form? I have six different select boxes that are
generated by six separate queries. The action page for all six
select boxes is the same so I just want one submit button so users
don't get confuse. I don't want to cluster up the page with submit
buttons but I may resort to that option.
My problem is the select boxes generate a number and when
that number is submitted I want to pass two other variables with it
to the action page. I tried putting a "Form" tag around the 6
select boxes. Inside each select box I tried to add an "Input
type="hidden"" and give thte name and values that I needed. That
worked for the first select box but when I tried the second select
box it used the hidden values for the first select box.
If anyone can help, I would greatly appreciate it. Or if you
have any other suggestions I am open to any.
ThanksPaross1,
I wasn't thinking about that and you gave me a great idea.
Here is how I changed my select boxes.
<cfform
action="Resolution_History.cfm?year=#year#&sessiontype=#sessiontype#&btype=res"
name="form">
<select name="SRINPUT">
<option value="">SR
<CFOUTPUT Query="findSR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="HRINPUT">
<option value="">HR
<CFOUTPUT Query="findHR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="SCRINPUT">
<option value="">SCR
<CFOUTPUT Query="findSCR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<br>
<select name="HCRINPUT">
<option value="">HCR
<CFOUTPUT Query="findHCR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="SJRINPUT">
<option value="">SJR
<CFOUTPUT Query="findSJR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="HJRINPUT">
<option value="">HJR
<CFOUTPUT Query="findHJR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<INPUT TYPE="Submit" VALUE="Submit" alt="submit
button">
</cfform>
On the action page I need the below IF statement to work so
it will set the variables. It isn't working at this time. Its not
bringing the values of billnumber, houseorig or the billtype.
Do you have any thoughts? I know it is close. I need to set
all of the inputs to input4 to generate my queries.
<cfif form.srinput gt 0>
<cfset houseorig eq "s">
<cfset billtype eq "r">
<cfset srinput eq input4>
<cfelseif form.hrinput gt 0>
<cfset houseorig eq "h">
<cfset billtype eq "r">
<cfset hrinput eq input4>
<cfelseif form.scrinput gt 0>
<cfset houseorig eq "sc">
<cfset billtype eq "r">
<cfset scrinput eq input4>
<cfelseif form.hcrinput gt 0>
<cfset houseorig eq "hc">
<cfset billtype eq "r">
<cfset hcrinput eq input4>
<cfelseif form.sjrinput gt 0>
<cfset houseorig eq "sj">
<cfset billtype eq "r">
<cfset sjrinput eq input4>
<cfelse>
<cfset houseorig eq "hj">
<cfset billtype eq "r">
<cfset hjrinput eq input4>
</cfif> -
Export/Convert Browser Based Infopath 2010 forms to PDF/Excel/Word
Hi,
Is there an OOB, way of converting browser based Infopath 2010 forms to PDF/Word/Excel.
In case there isnt, can anyone please point me to a coded or a programmatic way of implementing the same.
Soptik DuttaHi Soptik,
As far as I know, we can only save an InfoPath form as PDF/Excel using InfoPath Windows form application(rather than Broswer-based InfoPath).
In this case, we can
Open the library that save the forms
Selec the form that is wanted to be PDF/Excel(Just select it, don't open it)
Click the "inverse trangle", and then click "Edit in Microsoft InfoPath"
In InfoPath, click "File" > "Save & Send" to save the form as PDF/Excel
In this following thread, there are some code snippets, which will help you to export an form to PDF using custom code:
http://www.infopathdev.com/forums/t/8746.aspx?PageIndex=1
Please feel free to ask, if you have any more questions.
Thanks,
Jinchun Chen
Jinchun Chen
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 tnmff AT microsoft.com(Please replace AT with @) -
Hi all,
Does anyone know how to capture the SP username of who is making submission of the data from an InfoPath 2010 form? I looking to avoid the user need to type extra information like username/ manager name, etc; and then use code behind to be doing validation
before to push that data to an sql server.
Any suggestion , book reference , link is acceptable
thanks in advance
CRISTINA& MICROSOFT ForumHi Cristina,
Please check the following article with using web service UserProfileService.asmx to get the current user profile in InfoPath code behind and use the validating event to do some complex validation, it should help.
http://blogs.msdn.com/b/infopath/archive/2007/03/07/get-the-user-profile-through-moss-web-services.aspx
http://codesupport.wordpress.com/2010/04/05/sharepoints-userprofileservices-getuserprofilebyname-method/
http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
http://henry-chong.com/2010/12/infopath-validation-gotcha/
Thanks
Daniel Yang
TechNet Community Support -
Migrating InfoPath 2010 Forms(Lists/Libraries) to InfoPath 2013
Hi All,
We have lots of InfoPath Forms in SP2010 and migrating to SP 2013. It would be helpful if anyone could suggest a suitable way to migrate the Forms.
Trying to avoid external tools just planning to inhouse.
Thanks,Hi,
According to your post, my understanding is that you wanted to migrate InfoPath 2010 Forms(Lists/Libraries) to SharePoint 2013.
The issue is caused by the security and Claims-Based authentication.
There is a new Secure Store Service ID that needs to be created to allow InfoPath to connect over Claims Based Authentication
Here is a great blog for your reference:
http://thatssharepoint.blogspot.com/2013/12/issues-with-infopath-forms-after.html
More information:
InfoPath and SharePoint 2013 – Upgrading your forms
Migrating InfoPath Forms Services applications from 2010 to 2013
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 -
Hide RANGE option in Multiple Selection Popup window
This is regarding Parameter option.
In parameter variable,i declared NO INTERVALS option
to get only multiple values.
In multiple selection popup window.i want to select only multiple values not RANGE values. so i want to either disable or hide the f7 option.how to do this.
(we have ranges option at Popup window
when u click f7 or complex selection icon at bottom popup window.)
do we have any option to hide this.
Ambichanhi,
look fm SELECT_OPTIONS_RESTRICT
(here's a docu)
regards Andreas -
Hide / Show a block in Selection screen
Hi,
How to hide or show a block in selection screen.
Plz help.
Regards,
SriramREPORT ZTESTETSET.
02.
03."First we create the selection screen which contains 2 option
04."buttons For show and hide.
05.
06. SELECTION-SCREEN BEGIN of BLOCK screen1 WITH FRAME TITLE title1.
07. PARAMETERS: Show RADIOBUTTON GROUP opt USER-COMMAND aaa DEFAULT 'X',
08. Hide RADIOBUTTON GROUP opt .
09. SELECTION-SCREEN END OF BLOCK screen1.
10.
11. "This is the selection screen that we will hide and show
12. "based on the selected option button above
13.
14. SELECTION-SCREEN BEGIN of BLOCK screen2 WITH FRAME TITLE title2.
15. PARAMETER CONNID like spfli-connid.
16. SELECTION-SCREEN END OF BLOCK screen2.
17.
18."We capture the selected option event using
19."AT SELECTION-SCREEN OUTPUT to modify the screen
20.
21. AT SELECTION-SCREEN OUTPUT.
22. PERFORM modify_screen.
23.
24. START-OF-SELECTION.
25.
26."This is the sub program that will loop all the elements on
27."the selection screen to identify which element we want to
28."hide or show based on screen name.
29.
30. FORM modify_screen .
31. LOOP AT SCREEN.
32. IF Show NE 'X'.
33. IF screen-name CS 'CONNID'.
34. screen-active = 0.
35. MODIFY SCREEN.
36. ENDIF.
37. ENDIF.
38. ENDLOOP.
39.ENDFORM.
40.
41."Give the selection block a title.
42.INITIALIZATION.
43.
44.title1 = 'Show/Hide Option'.
45.title2 = 'Selection Screen'.
Thanks
anurag Srivastava -
When I selected multiple folders, the messages pane only contains messages from the first selected folder. How can Thunderbird show messages from all selected folders instead? I can't find anything in the docs nor any extension capable of doing this. I'm used to this feature when I use KMail2.
''christ1 [[#answer-710249|said]]''
<blockquote>
Try Global Search.
https://support.mozilla.org/en-US/kb/global-search
</blockquote>
Nope, not what I want. I don't want any searching, as simple as showing messages from ALL selected folderS, merged in one view. -
Get all the values from a multiple select in a multipart form
Hi there!
I am using a form with enctype="multipart/form-data" in order to upload files from the form.
I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
Using servlets I have used this method:
public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
Is there a way to get all the values of a multi-valued parameter?
Thanks a lot!
StefanoHi
I have got solution for this problem so, I am listing here logic
assume tag name of html
<select name="moption" multiple="multiple">
iterate it in as
String moption="";
boolean cnt=true;
while(itr.hasNext())
FileItem fi=(FileItem)itr.next();
if(fi.isFormField())
if(fi.getFieldName().equals("moption"))
if(cnt==true)
moption=fi.getString();
cnt=false;
else
moption=moption+","+fi.getString();
If wants more help then mail me your problem
at [email protected]
Thanks!
Anand Shankar
Edited by: AnandShankar on 6 Nov, 2009 12:54 PM -
Multiple selections in an HTML form
The option selector (<select>...</select>) in an HTML form allows the
user to make multiple selections. However, when the form parameters
are posted to an XSQL page, only the first value selected will be
assigned to the corresponding XSQL parameter.
This is very unfortunate, because I would like the selected values to
be used in a query like this:
<xsql:query>
select ...
from ...
where ...
and elem in ({@list})
and ...
</xsql:query>
where 'list' is the name of the option selector. However, since only
the first value selected is substituted, the query does not work.
The <xsql:include-request-params/> will "rowify" the values selected,
but this can only be utilized by a style sheet associated with the
XSQL page.
Does anyone know how to get access to all the selected values in the
XSQL page?
HELP!Hi,
Here is an approach that may work for you.
In the registration process, assign each individual a userid... e.g. bob123.
When they log into your site, create a SESSION variable, SESSION.userid = bob123.
In your db, for every player have two fields, one is the userid of the person that is attached to that player, and another field for the jersey number. You could also have a field for assigned/unassigned.
Populate the grid with the unassigned players. Have the empty jersey number field on the grid and make it editable. When an individual assigns a jersey number to the person, (you can have them update after each person selected or at the end), you can let a cfc update the db and using their SESSION.userid, they become the "owner" of that player. The update also will update the db with their jersey number. The update can also turn them from unassigned to assigned so noone else can "claim" them.
Now anytime the user logs in, they'll have their players, easy to get to using a WHERE sql statement = WHERE SESSION.userid = bob123.
cfwild -
Multiple select lists in tabular form
Hi,
I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
I am getting the following error:
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I changed Select list to POP list, I am not getting error.
Please suggest how to user select list in this case.
Regards,
MedaLnTInfotech wrote:
I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
I am getting the following error:
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I changed Select list to POP list, I am not getting error.
Please suggest how to user select list in this case.It is not possible. There is a 32K limit on the HTML generated for select list items. (As a type of report, tabular forms are also subject to the 32K limit on the size of a report row.)
In terms of usability 200 options is about the maximum size I would consider sensible for a select list ( and for select lists in tabular forms, much, much fewer!)
Use Popup Key LOVs. -
How to delete an Item using Button control in InfoPath 2010
Dear Experts
In my SharePoint 2010 List, I have added and using below controls instead of Ribbons
1) Save (button control)
2) Cancel (button control)
3) Delete (button control)
My requirement is when i click on Delete (button control) in edit form then particular item has to be deleted
How to achieve this
Regards
SantoshHi Santosh,
Please check this
http://www.bizsupportonline.net/browserforms/delete-sharepoint-list-items-object-model-infopath-browser-form.htm
Please remember to click 'Mark as Answer' on the answer if it helps you
Maybe you are looking for
-
Cannot convert pdf to word in Acrobat X PRO
I have just installed Acrobat X PRO on a PC and the user wants to make some of his PDF files into Microsoft Word. I go to the edit PDF and select the file then select MS Word and when I hit convert it says please sign in to a paid account...... This
-
How to activate my apple id in icloud in this iPod touch?
-
Keyboard tracking program.
What is a good program for a Mac Book Pro for keyboard tracking for passwords and web sites? As I suspected, my computer is going to sites that shouldn't be visited, and of course the response is, "What? I didn't go there, honest I didn't." Teenagers
-
Caching in OSB with Business Service
Hi All, I am done with business service development, but I need to configure caching to fetch the data from cache if TTL (Time to Live) <24 if is more then my request to interact with the database can please help how I can I do it, as I am new to cac
-
|Error SQL: ORA-14400: inserted partition key does not map to any partition
I have an installation of ECC6 with BI7 in which consolidated through SEM-BCS OBCS_C10 with the cube, which I have version 100 for fiscal data, 101 data for IFRS and IFRS Copying a 301 version. The client will ask me the empty version of the 301 in t