Show/Hide infopath groups programmatically depending on checkbox selection - sharepoint

i'm new to infopath and need to ammend an existing infopath 2010 form. The users only want certain section groups to appear based on the users choice via checkboxes. Currently there are conditional rules in place for each group on the form which are working to hide/show the sections depending on whcih checkbox or checkboxes are selected.(each checkbox relates to a group). There are 19 checkboxes and related groups, the users can select 1 or more groups.
The problem is when users tick the checkbox , there is a delayed reaction seeing as there are so many condtional checks taking place on each click.The users dont like this. they would rather selct all the checkboxes they want , and then click a button to do all the work at once(instead of on each checkbox). So i've been trying to programmatically access the groups from the code behind the buttons to hide/show them depending on which checkboxes are selected. Is it even possible to set the hide/show property of a group in the code behind ?
Thanks in advance for any help

You can't show or hide sections directly with code, but you can affect data sources, which in turn can trigger rules.
See here for updating the data source programatically:
http://www.bizsupportonline.net/browserforms/programmatically-enable-disable-control-infopath-form.htm

Related

Group radio buttons on Excel

I have two groups of radio buttons on the same Excel worksheet that I want them to work exclusively from each other.
I tried to search online for answers, and got to know there was GroupName Property which can be used to group the radio buttons, however, I haven't been able to locate this property.
Can anyone tell me how to find it?
There is only object positioning under the property tab of the format control window.
You need to add a group box control and then insert the radio buttons into that group box.
See here for more info: Add a group box or frame control to a worksheet
Use ActiveX controls
and in developer mode right click on RadioButton
and in properties box

In CRM 2011, hiding picklist values to other users

Values visible to Owner
Hi I know how to hide the values in textbox as shown above,But no idea how to hide values similarly in the picklist.If anyone have any idea please guide me.
There is no option to "Password hide" the text in a pick list. You do have a couple options though:
Hide the field completely using the CRM setVisible javascript method. Set the code to run on the onload of the form. A slightly more "secure" version of this is to initially mark it as invisible in the CRM Form Editor, then make it visible for the users that need it visible.
Create a new form that doesn't even contain the field for the users that don't need access. This is the most "secure" method, but it requires the security to be role based, and it looks like you need it value based.

"Hidden" columns in Sharepoint 2007

I'm trying to make a custom list for inquiries, where users will fill in some information such as "Name", "Reason" etc. When they've finished filling in the information and added the item, the administrator will then go through the item, and fill in some new columns that the user hasn't been able to fill in.
I hope you understand me, otherwise you're more than welcome to ask questions!
With SharePoint designer 2007, you can use the SPSecurityTrimmedControl who enable you to show/hide form field (or site action...).
Syntax :
<SharePoint:SPSecurityTrimmedControl PermissionsString="ManageLists" runat="server">
WHAT_YOU_WANT_TO_HIDE_HERE
</SharePoint:SPSecurityTrimmedControl>
For the PermissionsString, all values HERE
You'll need to use SharePoint Designer. You will create custom new and edit forms. This way when the user fills in the new form, only certain fields will appear. Then when the administrator edits the item using the edit form, they will have access to more fields.
Please see this link for more information.
Try making a copy of the form you wish to edit by copying and pasting to the same folder. Then click on the web part for the form and the code above will highlight . Look for tags IsVisible and change it from "true" to "false". This will hide the default form. Do not delete the original form.
Click on the web part in the design view then press your right arrow. This will move the cursor to right after the web part but still within the web part zone. Go to the Insert menu, select SharePoint Controls then Custom List form. A small dialog window will appear, select the list name from the first drop down, then select the content type from the second drop down. Finally select which form you want to insert, New, Edit or Display. Click OK. The new form will be displayed under the default form, and you will then see all of the fields in order and you can add or remove as you like.
If one did not want to edit the pages, couldn't one use Jquery to hide the fields? I have done this with SPservices. to check the user credentials if you will and then if matched display the hidden fields... all this is done from a web part...just a thought...I actually learned something great today.. great replies.

Hide custom list columns from the NewFrom, EditForm, notification emails

I've created several custom columns in the Tasks list named NotifyUser and IsUserNotified. These columns are not supposed to be changed by user. I change them programmatically only. Is there any mechanism to:
Hide those columns from the NewForm, EditForm (I wanna use
existent Forms).
Skip executing workflows when any of those two columns been changed.
Exclude columns from the notification mails (as long as user doesn't know anything about these columns, there is no need to show them).
You only can control these things if you are creating your field programmatically or via a field schema definition (deployment via WSP Solution and a feature):
Set the property Hidden to true in order to hide the field in user forms and views.
Refer to: SharePoint Workflow: how to update the item without triggering the workflow again
Should be done by 1.
You can edit your view by going in List Tools->List->List Settings->Views.
Then click on the name of your List from where you can uncheck the column that u dont want to show to the user and click ok.

How do I enable a range selector on an Excel ribbon bar?

What is the standard practice for adding range selection controls to a ribbon bar in Excel? I'm creating an Add-In and need to enable the user to define a series of ranges. Here's a link to a question with an illustration of what I want Provide a range selection tool/utility to the user in Excel VBA. The answer to the question however only works in the context of a winform. My research suggests you can't use RefEdit controls directly in a ribbon bar. Is that true? If so, what solution do you recommend? I considered creating a button that triggers a popup containing a RefEdit control, but that strikes me as a poor user experience since it involves additional clicks by the user.
Unfortunately, you are correct: the RefEdit control cannot be used within a ribbon. However, you can use a button control to populate an editBox control with the currently selected range, using the editBox's getText dynamic attribute. This will not only place a control within the ribbon that displays the selected range and holds the value there with a single click, but -- if needed -- other automated processes can be executed as well.

Resources