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

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.

Related

Sharepoint Drop-Down Column with Multiple Select Choices

One of my columns contain 200 countries. End user should be able to select multiple items from the list.
Sharepoint multiple choice column only allows for one of three choices:
Drop-Down Menu
Radio Buttons
Checkboxes (allow multiple selections)
I'd like to be able to combine the features of Drop-down menu and checkbox.
Is this possible and is there a workaround in Sharepoint designer?
Not looking to do this in InfoPath forms.
Thanks!
You need to put your 200 Countries values into a Custom List, then use a Lookup column rather than a Choice column.  With the Lookup column, you can allow multi-selects.
If you can change your field type to another then use type "Lookup column with multiple values". It has good UI experience. But you must create additional list with your 200 countries.
If you want to use only choice type field then I think no, you must add custom control on form.
May be like this:
1. Add script on form.
2. Script will render some jquery autocomplete control (https://jqueryui.com/autocomplete/#combobox) or select2 control (https://select2.org/dropdown or https://select2.org/selections) on form load. If no third party controls exists that applied to you then create own control with necessary features. Populate it from out-of-box field options.
3. Hide out-of-box field.
4. Add onChange or onPreSave handlers that copy values from your custom control to out-of-box field.
When form saved it save out-of-box field value to list item.

How do i make a manually added value in a choice column persist

I have a Sharepoint list with a "Choice" with "Can add values manually" checked.
How do i make a manually added value in a choice column persist so that is available when adding and editing other records?
I created new list on my Office365 SharePoint site. When in classic mode, manually entered values are not available while editing/creating new list items regardless the choices are displayed in a dropdown, radio buttons or as multi select checkboxes. When switching from classic to modern SharePoint experience, manually entered values are available while editing/adding list items. Hope this helps.

Hide all fields except Title in a SharePoint alert email

What I need is exactly that: to be able to hide ALL the fields in a SharePoint alert mail except for say Title.
Now before you mark this as a duplicate of
Hide field in SharePoint alert email,
please note that the above link does solve this, but this would require specifying each and every field to be hidden.
The properties element allows you to include or exclude fields from
the list that would be shown in the email notification. The example
below demonstrates how to exclude fields for both the immediate and
summary (digest) alerts.
<Properties>
<ImmediateNotificationExcludedFields>ID;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</ImmediateNotificationExcludedFields>
<DigestNotificationExcludedFields>ID;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</DigestNotificationExcludedFields>
</Properties>
The implications of this would mean that if there is a new field added, I would then have to update this custom template.
I was wondering if it was possible to by default just hide every field, and just specify what I want shown instead (in this case, just the Title).
Is this possible? Or am I stuck with having to state one by one what I want hidden?
If this is for a specific list, I would just create a workflow in SharePoint designer that sends an email whenever something changes on the list. This gives you 100% control over the look and feel of the notification that is sent out. However, it would not allow individuals to set up their own alerts.

Custom column in list

Can any one tell me that, Is is possible in wss to have our custom column in a view of list. The way how we are adding edit and delete column in asp.net grid by setting autogenerateedit button property to true. I have to write my custom login on click event of that button. This action is going to be common for all list items.
Thanks
Sachin K
I am afraid that it is not possible out of the Box in SharePoint (WSS / MOSS). If you want to have such an option, you might need to create a Separate page that will have code to do the opertion. Try out the SPGridView and SPDataSource.
Else I would suggest (Recommend) you to have a look at the DataSheetView option provided by the List, it will list List item details as all editable format, like Excel sheet.

Sharepoint calculated field's formula for created by

i have a sharepoint list
with 2 users for examole (user A and user B)
i need a calculated field in the list items such that if user "A" created the item the field vaule will be "X" and if user "B" created the item fields value would be "Y"
but i couldnt use [created by] in the furmiula of the calculated field !! why is that ?!! and is there another way to do what i need to do ?!
If using Sharepoint Designer is an option you can create a workflow for that list. Set it to start when a new item is created -or- edited, use a condition of "If Created_By equals ..." and an action of "Set yourfield to yourvalue", then add an Else If branch and repeat. This will always override anything a user enters in "yourfield". Takes about 2 minutes to do all of this.
I believe you can create a text field that has the default value set to [Me] which should then be usable in a calculated field.
For more complicated formulae (i.e. anything with conditional logic), try creating an event handler for the content type (or doc library). This will allow you full control to set the fields to what you desire.
The field can be hidden from the user inside the edit screens.
Make sure use the STSDev from codeplex to setup the solution for deployment.

Resources