Quantcast
Channel: Nick Hurst – SharePoint and Nintex OOTB
Viewing all 44 articles
Browse latest View live

Nintex Forms getting persons profile information

$
0
0

Nintex forms allow you to return user profile information for selected users, the user profile information includes their Preferred Name, department, title, phone, email and more.  See the User Profile values tutorial for a complete list.

What happens in Nintex forms is when you use a people picker field or a reference to the Current User, the value returned is the full login name for the individual which includes the domain (e.g. domainname\username).

Get persons phone number or other profile value

In this example we are going to be getting the person selected in the person or group field work phone number.  See the User profile information tutorial link above for a full list of user profile values you can return.  Here’s our example form with no customization’s, as you can see selecting a user does not populate the phone number:
Nintex-Forms-User-Profile-16-0

1. We have to use a Calculated Value to get user profile information, so first delete the Phone number field, then drag a calculated value control where the field used to be.
Nintex-Forms-User-Profile-16-1

2. You will notice that the calculated value field is not formatted properly though (text displayed in the top right corner).  To fix the formatting, click on an existing field on your form (like the Person or Group Field), then click on Format Painter, the click on your new field.
Nintex-Forms-User-Profile-16-2

3.  This will copy the formatting from the existing field to your new Calculated Value field.  The text should now be centered with a light gray background.
Nintex-Forms-User-Profile-16-3

4.  Double Click on the Calculated Value field to open the Control Settings.  Enter a Name for the control and connect it to the field in the list.
Nintex-Forms-User-Profile-16-4

5.  Click on the Insert Reference icon next to the Formula field.  In the Formula Builder popup window, click on the Runtime Functions tab, then double-click the userProfileLookup function to insert the function into the Formula field.
Nintex-Forms-User-Profile-16-5

6.  Once the userProfileLookup() function in your formula field, click in between the ( ).  Then click on the Named Controls and select your People picker field (Or you could use the Common tab > Current User reference as well).
Nintex-Forms-User-Profile-16-6

7.  After your field reference (which will be displayed in red), add a comma, the inside of quotes put the User Profile that you want to return (WorkPhone, PreferredName, Department, Title, WorkEmail, Click here for full list).  Once your formula is done click the OK button.
Nintex-Forms-User-Profile-16-7

8.  Your Control Setting should look similar to the example below.  Click the Save button.
Nintex-Forms-User-Profile-16-8

Finished Example:  Now when a person is selected in a people picker field, their phone number from their user profile will be returned.
Nintex-Forms-User-Profile-16-9


Nintex Forms User Profile Values

$
0
0

Using Nintex Forms or workflows you can return profile values for individuals specified in people picker fields, the created or modified by persons, or the current user.  To see how to return profile values in Nintex forms, please view this tutorial.

Here is a list of the values that are available from an Individuals SharePoint User Profile:

Most frequently used:
PreferredName
WorkPhone
WorkEmail
Office
Department
Title
Manager
All profile values:
UserProfile_GUID
EmployeeID
AccountName
FirstName
LastName
AboutMe
PersonalSpace
PictureURL
UserName
QuickLinks
WebSite
PublicSiteRedirect
SPS-Dotted-line
SPS-Peers
SPS-Responsibility
SPS-Skills
SPS-PastProjects
SPS-Interests
SPS-School
SPS-SipAddress
SPS-Birthday
SPS-MySiteUpgrade
SPS-DontSuggestList
SPS-ProxyAddresses
SPS-HireDate
SPS-LastColleagueAdded
SPS-OWAUrl
SPS-ResourceAccountName
SPS-MasterAccountName
Assistant
CellPhone
Fax
HomePhone

Nintex Forms No Title for items

$
0
0

If you do not have the Title field in your Nintex form, all your form entries will be displayed as ‘No Title’:
Forms-Issue-No-Title-16-1

The problem with this is you usually need the Title field to display on your list views as it’s the only column that provides a link to the form itself, including the edit menu options (the ellipses), and the title is what is shown in search results.  So if all your forms are titled No Title, no one will be able to tell which form is which when searching.

Solution

Often it doesn’t make sense to make an end user put in a ‘Title’ for the form, instead what we usually recommend is creating a Calculated value to create a unique meaningful title for the form based on values entered into form fields.  See the Creating a Form Title tutorial for complete instructions.

Nintex Forms confirmation messages

$
0
0

Although there is an option on Nintex Forms Buttons to allow you to setup confirmation messages, this setting should only be used if Causes validation is set to No.
Nintex-Forms-confirmation-msg-16-1So essentially confirmation messages should not be added to buttons that Save the form, since validation usually needs to occur before the form is saved.

The problem is that the confirmation message displays before validation occurs and before the form is saved.  So if there is a validation problem (e.g. a blank required field), the confirmation message will display, then the missing field validation message will display.  This is confusing for the end user as they think the form submitted because they got the confirmation message.

Solution

Do not put confirmation messages on buttons that Cause validation (usually Save or Submit buttons).

 

Nintex Forms blank screen

$
0
0

With Nintex forms you might experience either a preview of a Nintex form or when trying to create a new or edit an existing form for the screen to just be blank:
Nintex-Forms-Blank-screen-16-1

Solution

The blank preview or blank form is caused by either an invalid rule or invalid javascript.  The most common cause is an invalid rule, all it takes is forgetting a closing bracket for example and the form just won’t display.  Unfortunately no errors will display, which is why with Nintex forms it’s a good idea to preview your form after every 1 or 2 new rules are created to ensure you don’t have a formatting problem with the rules.

Example 1: rule is missing a closing parentheses:
Nintex-Forms-Blank-screen-16-2

Example 2: rule is missing closing quote mark:
Nintex-Forms-Blank-screen-16-5

Example 3: rule is missing the comma after Field reference and before format:
Nintex-Forms-Blank-screen-16-6

Any of the examples above would cause the form not to load.  Fixing the rule, fixes the form:
Nintex-Forms-Blank-screen-16-3

 

To find which rule is formatted incorrectly, Click on the Nintex Forms tab, click on the Rules option, then check the Show All box.  This will allow you to scroll through all the rules on your form:
Nintex-Forms-Blank-screen-16-4

 

Nintex Forms checking the format of fields

$
0
0

With forms you sometimes to need to check the format of fields to ensure they are formatted as you would expect them to be.  Some examples of formatted fields include:

  • Email Addresses
  • Social Security Number
  • A number that is xx digits long (e.g. NPI number is always 10 digits long)
  • Only letters and specific symbols allowed

To check the format of the data entered into a field you will need to use the Control Regular expression formula for that field.

To do that, double-click on the field to open the Control Settings for the field.  Click on the Validation + mark to expand the section, for Use a regular expression select Yes.  You can then enter a Regular expression (examples below) and a error message for that field.
nintex-forms-format-expression-16-1

Regular Expression Examples

Email Address format

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$

Social Security Number format

\d{3,3}-\d{2,2}-\d{4,4}$

A 10 digit long number format

\d{10,10}$

Between a 7 and 9 digit long number format

\d{7,9}$

Alphanumeric (no special characters)

[0-9a-zA-Z\s]*

 

Phone Number with area code (allows either dashes or periods in between the numbers):

\b\d{3}[-.]?\d{3}[-.]?\d{4}\b

 

Creating your own Regular Expressions

I found a really useful site (http://www.regexr.com/) which I’ve found helpful to create and test regular expressions.

**Please note, do not use either the ^ or $ at the start or end of your expressions on the regexr site, these symbols should only be used on a single line of text field.  The test text on that site is in a multi-line text field so if you use either of those symbols you will get incorrect results.

Example of testing the email formating on RegExr:
nintex-forms-format-expression-16-2

 

 

 

 

Nintex Forms hide site left navigation

$
0
0

In my opinion it’s a best practice to hide the sites left navigation or current navigation from all Nintex forms.  The reason why is if someone clicks on a left navigation link while filling out a form, all the information they entered into the form will be lost.  So to prevent that we just hide the left navigation from all Nintex forms:
Nintex-Forms-Hide-Left-Nav-16-1

How to hide the left nav from forms

1. Open the form in the Nintex Form Designer

2. Click on the Settings option in the ribbon, expand out the Custom JavaScript section on the Settings popup window.
Nintex-Forms-Hide-Left-Nav-16-8

3. Paste the following text into the Custom JavaScript section:

// Hide the left navigation
NWF$(“#sideNavBox”).hide();
NWF$(“#contentBox”).css({“margin-left”:”20px”});

Nintex-Forms-Hide-Left-Nav-16-9

4. Save the Settings and Publish the form.

Finished Example: The form will now open with the left navigation hidden:
Nintex-Forms-Hide-Left-Nav-16-5

Nintex Forms hide form ribbon

$
0
0

You can hide the ribbon that displays above Nintex forms if you want to hide all the form ribbon options:
Nintex-Forms-Hide-Ribbon-16-1
Please be aware that if you hide the ribbon for the form, you also hide the spell checking option and the ribbon options for the multi-line of text field as well:
Nintex-Forms-Hide-Ribbon-16-2

 

Hiding the form ribbon

1. Open the form in the Nintex Form Designer

2. Click on the Settings option in the ribbon, expand out the Custom JavaScript section on the Settings popup window.
Nintex-Forms-Hide-Left-Nav-16-8

3. Paste the following text into the Custom JavaScript section:

// Hide the form ribbon
NWF$(“#s4-ribbonrow”).hide();

Nintex-Forms-Hide-Ribbon-16-3

4. Save the Settings and Publish the form.

Finished Example: The form will now open with the left navigation hidden:
Nintex-Forms-Hide-Ribbon-16-4

 


Nintex Forms making text larger

$
0
0

Instead of trying to change the size of every label and field in your form to make the font larger, instead you can use javascript to make all the labels and fields larger:
Nintex-Forms-larger-font-16-4

Making form fields larger

1. Open the form in the Nintex Form Designer

2. Click on the Settings option in the ribbon, expand out the Custom CSS section on the Settings popup window.
Nintex-Forms-larger-font-16-1

3. Paste the following text into the Custom CSS section:

/* Start: Make label and text fields larger */
.nf-outer {
font-size: 11pt;
}
a.ms-addnew {
font-size: 11pt;
}
input[type=”submit”], button {
padding: 3px;
font-size: 14px;
border:1px solid #999999;
-webkit-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-o-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}
.nf-textbox-wrapper > input[type=”text”] {
margin-left: -2px !important;
max-width: 98%;
}
.ui-datepicker-trigger {
top: 7px;
height: 20px;
width: 21px;
}
.ms-taxonomy-browser-button {
padding-top:5px !important;
}
.nf-attachmentsLink {
padding-top:2px;
}
.nf-form-label label {
padding-top: 3px !important;
padding-left: 10px !important;
}
.nf-filler-container {
padding: 10px 0px 0px 10px;
}
.nf-filler-control-inner label {
padding-top: 3px !important;
}
/* End: Make label and text fields larger */

Nintex-Forms-larger-font-16-2

4. Save the Settings and Publish the form.

Finished Example: The form will now display with a larger font:
Nintex-Forms-larger-font-16-3

SharePoint Filtered Views with multiple conditions

$
0
0

Setting up SharePoint list or library filtered views with multiple conditions can sometimes be a little tricky as the order that you put the conditions determine whether the view will filter successfully or not.  Most of the problems occur when creating Filtered views that contain both AND and OR conditions.  The simple rule of thumb I use when contains both is to put the OR conditions before the AND conditions.

So for example if I wanted to create an Overdue Open Tasks view, if I put the AND condition before the OR condition, the ‘Test Issue 2’ item appears in my view even though it doesn’t meet the Due Date is less than today condition:
Filtered-Views-16-1
But if I put the OR condition before the AND condition, now the filtered view works correctly and only returns Pending or In Progress items where the Due Date is less than Today:
Filtered-Views-16-2

To show a little more complex example, I’m going to create a My Overdue Open Tasks view which is basically the same as the view above but now additionally only returns items Assigned to Me.  Again if I put an AND condition before an OR condition, the view returns an item that shouldn’t be there:
Filtered-Views-16-5

But if I put the OR before the AND’s, now the filter works correctly:
Filtered-Views-16-4

Sometimes an easier way to create filtered views with multiple conditions, is to create a calculated field to combine conditions together.  For example you could use a calculated field to mark all ‘In Progress’ OR ‘ Pending’ items as ‘Active’ in the calculated column.  Not only does this simplify the conditions for creating views, but if you ever add a third condition like ‘Waiting on Someone’ that you want to show up in all your views, you can just edit the one calculated column formula instead of having to update all your views.  To learn how this is done see the Using a Calculated field to simplify Filtered Views tutorial.

If you would like to understand the logic behind why the SharePoint views filter like they do, here’s a good in depth post on the Nothing but SharePoint blog:
http://www.nothingbutsharepoint.com/2011/08/11/understanding-filters-in-sharepoint-list-views-aspx/

 

SharePoint filtered view is not working

$
0
0

When creating filtered views on SharePoint lists or libraries, sometimes items that shouldn’t appear in the view do appear with filters that combine both AND and OR conditions together.  For example here’s an example of a filtered view where I wanted only items with the word test in the title, and in either Pending and In Progress status.  The problem is an item without the word Test in the Title is returned in the view:
Troubleshooting-filtered-views-16-1

The problem is the order of conditions determine how the the SharePoint filters work.

Solution

When combining OR and AND conditions together, put the OR condition(s) before the AND condition(s):
Troubleshooting-filtered-views-16-2

More Information

For more information on setting up filtered views with multiple conditions:
Filtered Views with Multiple Conditions tutorial

OR you can use a Calculated Column to simplify filtered views:
Filtered views with Calculated Columns tutorial

SharePoint Calculated columns to show Active Items

$
0
0

Creating filtered views with multiple conditions can usually be made simpler by using Calculated Columns to group any OR conditions together.

For example, let’s say you have an Issues list with a Status choice field with the following choices:
Pending
In Progress
Waiting on Someone
Completed
Cancelled

If we wanted to create an ‘Active’ items view, we would probably want to show all items that were either Pending, OR In Progress, OR Waiting on Someone.  Instead of having three conditions in our Filtered view, instead we can create an ‘Active’ Calculated Column that marks all Pending, In Progress, and Waiting on Someone items as Active.  This would make the filtered view much simpler:
Calc-Field-Filtered-View-16-1

This would also make it much easier to add additional active Status choices later, as all you have to do is update your calculated column instead of having to update all your views.

Creating a Calculated Column for a Filtered View

1. Go to the list or library, click on the list/library tab, select the list/library settings option
Calc-Field-Filtered-View-16-2

2. Under the Columns section, click on the Create column link
Calc-Field-Filtered-View-16-3

3.  Enter a column name, select the Calculated type:
Calc-Field-Filtered-View-16-4

4.  Create the Calculated Column Formula, for this type of calculated formula you will want
to combine an IF and OR function together like in this example if you have 2 values:

=IF(OR([Status]=”Pending”,[Status]=”In Progress”),”Yes”,”No”)

Breaking down this structure, the image below shows the text explanation of the part of the color coded part of the formula below:
Calc-Field-Filtered-View-16-9

We actually have to put the OR before the fields with the comma actually representing the OR.  Another example is if you have 3 Status values:

=IF(OR([Status]=”Pending”,[Status]=”In Progress”,[Status]=”Waiting on Someone”),”Yes”,”No”)

=IF(OR(
Then click on field you want to evaluate
Calc-Field-Filtered-View-16-5

5.  Add an equals sign and then the value of the field inside of double quotes:
Calc-Field-Filtered-View-16-11

6.  Add a comma for the OR, then click on the 2nd field you to evaluate, followed by an equals sign and then the value of the field inside of double quotes:
Calc-Field-Filtered-View-16-12

7.  Add a closing bracket, a comma followed by the value you want the field to be if the IF statement is true inside of double quotes:
Calc-Field-Filtered-View-16-13

8.  Add a comma followed by the value you want the field to be if the IF statement if false inside of double quotes, then add another closing bracket:
Calc-Field-Filtered-View-16-14

9.  Once your function is completed, select the single line of text data type and click the OK button.
Calc-Field-Filtered-View-16-6

10.  Your list will now have a new column on it, in our example Waiting on Someone and Pending items are a Yes for Active, while Completed and Cancelled items are a No:
Calc-Field-Filtered-View-16-7

This will make it much simpler to create views as you can now just filter on the Active column:
Calc-Field-Filtered-View-16-8

SharePoint Calculated Column Examples

$
0
0

This article covers the following types of Calculated Column formulas:

  • Date and time formulas
  • Mathematical (number field) formulas
  • Text formulas

Click on the links below to go to the tutorials for:

**Most of the formulas in this tutorial were copied from the following Microsoft MSDN article:
https://msdn.microsoft.com/en-us/library/office/bb862071(v=office.14).aspx

I’ve tried to simplify the formulas from the MSDN article and include screenshots of the formulas to better show how these formulas could be used.

Note Note
When creating calculated columns make sure the correct returned data type is selected, screenshots have been provided for each group of formula examples.

To add a number to a date, use the addition (+) operator.  To subtract a number use the (-) operator.

Add or Subtract days from dates

Column1 (Date) Column2 (Number) Formula Description (possible result)
6/9/2016 3 =[Column1]+[Column2] Adds 3 days to 6/9/2016
(6/12/2016)
12/10/2016 =[Column1]-4 Subtracts 4 days from 12/10/2016 (12/6/2016)

SP-Calculated-Column-Examples-16-6

Add or Subtract Years, Months or Days from dates

Use the DATE, YEAR, MONTH, and DAY functions.

Column1
(Date)
Column2
(Number)
Formula Description (possible result)
6/9/2016 3 =DATE(YEAR([Column1])+[Column2],MONTH([Column1]),DAY([Column1])) Adds 3 months to 6/9/2016 (9/9/2016)
2/10/2016 5 =DATE(YEAR([Column1])+3,MONTH([Column1])+[Column2],DAY([Column1])+1) Add 3 years, 5 months, and 1 day to 2/10/2016 (7/11/2019)

Calculate the difference between two dates

Use the DATEDIF function, the data type returned must be a Number.

Column1 Column2 Formula Description (possible result)
01/01/2016 06/15/2016 =DATEDIF([Column1], [Column2],”d”) Returns the number of days between the two dates (166)
08/01/2014 01/01/2016 =DATEDIF([Column1], [Column2],”m”) Returns the number of months between the dates (17)

SP-Calculated-Column-Examples-16-7

Calculate the difference between two times

Use the INT function to subtract one date/time from another, then times that number by the number of whatever units (hours, minutes, seconds) in a Day.  The data type returned must be a Number.

Column1 Column2 Formula Description (possible result)
06/09/2016 10:35 AM 06/10/2016 3:30 PM =INT(([Column2]-[Column1])*24) Total hours between two times (28)
06/09/2016 10:35 AM 06/10/2016 3:30 PM =INT(([Column2]-[Column1])*1440) Total minutes between two times (1735)
06/09/2016 10:35 AM 06/10/2016 3:30 PM =INT(([Column2]-[Column1])*86400) Total seconds between two times (104100)

Show dates as the day of the week

To convert dates to the text for the day of the week, use the TEXT and WEEKDAY functions. The data type returned must be a Single line of text.

Column1 Formula Description (possible result)
04/16/2016 =TEXT(WEEKDAY([Column1]), “dddd”) Calculates the day of the week for the date and returns the full name of the day (Saturday)
04/21/2016 =TEXT(WEEKDAY([Column1]), “ddd”) Calculates the day of the week for the date and returns the abbreviated name of the day (Thu)

SP-Calculated-Column-Examples-16-8

Mathematical (number) formulas


You can use the following formulas to perform a variety of mathematical calculations, such as adding, subtracting, multiplying, dividing numbers; calculating the average or median of numbers; and doing greater or less than comparisons.

Add or Subtract numbers

To add numbers in two or more columns in a row, use the addition (+) or subtraction (-) operator

ColumnA ColumnB ColumnC Formula Description (possible result)
15 10 5 =[ColumnA]+[ColumnB]+[ColumnC] Adds 15+10+5 together (30)
15 10 5 =[ColumnA]-[ColumnB]-[ColumnC] Subtracts 15-10-5 (0)

SP-Calculated-Column-Examples-16-4

Multiply or Divide numbers

Column1 Column2 Formula Description (possible result)
5 2 =[Column1]*[Column2] Multiplies 5 * 2
(10)
15000 12 =[Column1]/ [Column2] Divides 15000 by 12 (1250)

Calculate the average of numbers

The average is also called the mean. To calculate the average of numbers in two or more columns in a row, use the AVERAGE function.

Column1 Column2 Column3 Formula Description (possible result)
6 5 4 =AVERAGE([Column1], [Column2],[Column3]) Average of the numbers in the first three columns (5)
6 5 4 =AVERAGE(IF([Column1]>[Column2], [Column1]-[Column2], 10), [Column3]) If Column1 is greater than Column2, calculate the average of the difference and Column3. Else calculate the average of the value 10 and Column3 (2.5)

Calculate the smallest or largest number in a range

To calculate the smallest or largest number in two or more columns in a row, use the MIN and MAX functions.

Column1 Column2 Column3 Formula Description (possible result)
10 7 9 =MIN([Column1], [Column2], [Column3]) Smallest number (7)
10 7 9 =MAX([Column1], [Column2], [Column3]) Largest number (10)

Calculate the difference between two numbers as a percentage

Use the subtraction (-) and division (/) operators and the ABS function.

Column1 Column2 Formula Description (possible result)
2342 2500 =([Column2]-[Column1])/ABS([Column1]) Percentage change (6.75%)

Increase or decrease a number by a percentage

Use the percent (%) operator to perform this calculation.

Column1 Column2 Formula Description (possible result)
100 =[Column1]*(1.05) Increases number in Column1 by 5% (105)
100 7% (Column 2 must be number field set to display as percentage) =[Column1]*(1+[Column2]) Increases number in Column1 by the percent value in Column2: 7% (107)
100 7% (Column 2 must be number field set to display as percentage) =[Column1]*(1-[Column2]) Decreases number in Column1 by the percent value in Column2: 7% (93)

SP-Calculated-Column-Examples-16-9

Determine whether a number is greater than or less than another number

Use the IF function to compare number fields, the data type returned must be a Single line of text.

Column1 Column2 Formula Description (possible result)
15 9 =IF([Column1]>[Column2], “Yes”, “No”) Is Column1 greater than  Column2? (Yes)
15 9 =IF([Column1]<=[Column2], “OK”, “Not OK”) Is Column1 less than or equal to Column2? (Not OK)

SP-Calculated-Column-Examples-16-10

Number conditions with an AND or OR functions

Using the AND or OR functions your can create more complex conditional formulas

Column1 Column2 Column3 Formula Description (possible result)
15 9 8 =IF(AND([Column1]>[Column2], [Column1]<[Column3]), “OK”, “Not OK”) If 15 is greater than 9 AND 15 is less than 8, return “OK”. (Not OK)
15 9 8 =IF(OR([Column1]>[Column2], [Column1]<[Column3]), “Yes”, “No”) If 15 is greater than 9 OR if 15 is less than 8, return “Yes”. (Yes)

Text formulas


You can use the following formulas to manipulate text, such as combining or concatenating the values from multiple columns, comparing the contents of columns, and removing characters or spaces.

Change the case of text

To change the case of text, use the UPPER, LOWER, or PROPER function.

Column1 Formula Description (possible result)
John Doe =UPPER([Column1]) Changes text to uppercase (JOHN DOE)
John Doe =LOWER([Column1]) Changes text to lowercase (john doe)
jane doe =PROPER([Column1]) Changes text to title case (Jane Doe)

SP-Calculated-Column-Examples-16-11

Combine text column values together

To combine first and last names, use the ampersand operator (&) or the CONCATENATE function.

Column1 Column2 Formula Description (possible result)
Carlos Carvallo =[Column1]&[Column2] Combines the two strings (CarlosCarvallo)
Carlos Carvallo =[Column1]&” “&[Column2] Combines the two strings, separated by a space (Carlos Carvallo)
Carlos Carvallo =[Column2]&”, “&[Column1] Combines the two strings, separated by a comma and a space (Carvallo, Carlos)

Combine text and numbers from different columns

To combine text and numbers, use the CONCATENATE function, the ampersand operator (&), or the TEXT function and the ampersand operator.

Column1 Column2 Formula Description (possible result)
Yang 28 =[Column1]&” sold “&[Column2]&” units.” Combines contents above into a phrase (Yang sold 28 units.)
Dubois 40% =[Column1]&” sold “&TEXT([Column2],”0%”)&” of the total sales.” Combines contents above into a phrase (Dubois sold 40% of the total sales.)

Note   The TEXT function appends the formatted value of Column2 instead of the underlying value, which is 0.4.

Combine text with a date or time

To combine text with a date or time, use the TEXT function and the ampersand operator (&).

Column1 Column2 Formula Description (possible result)
06/20/2016 =”Payment due: “&TEXT([Column2], “mmmm dd, yyyy”) Combines text with a date (Payment due: June 20, 2016)
Billing Date 06/20/2016 =[Column1]&” “&TEXT([Column2], “mmm-dd-yyyy”) Combines text and date from different columns into one column (Billing Date Jun-05-2016)

Determine whether a column value or a part of it matches specific text

To determine whether a column value or a part of it matches specific text, use the IF, FIND, SEARCH, and ISNUMBER functions.

Column1 Formula Description (possible result)
Urgent =IF([Column1]=”Urgent”, “Yes”, “No”) Determines whether Column1 is Urgent (Yes)
Standard =IF(ISNUMBER(FIND(“s”,[Column1])), “OK”, “Not OK”) Determines whether Column1 contains the letter s (OK)
BD123 =ISNUMBER(FIND(“BD”,[Column1])) Determines whether Column1 contains BD (Yes)

Remove characters from text

To remove characters from text, use the LEN, LEFT, and RIGHT functions.

Column1 Formula Description (possible result)
Vitamin A =LEFT([Column1],LEN([Column1])-2) Returns 7 (9-2) characters, starting from left (Vitamin)
Vitamin B1 =RIGHT([Column1], LEN([Column1])-8) Returns 2 (10-8) characters, starting from right (B1)

Remove spaces from the beginning and end of a column

To remove spaces from a column, use the TRIM function.

Column1 Formula Description (possible result)
     Hello there! =TRIM([Column1]) Removes the spaces from the beginning and end (Hello there!)

SharePoint Calculated Column Getting Started

$
0
0

Calculated Columns or Calculated Fields in SharePoint lists and libraries can be used for many different things.  They can be used for:

  • Number or Mathematical equations (this tutorial)
  • Date Formulas (add or subtract dates OR  find the difference between two dates)
  • Text Formulas (evaluate a field value to see if it matches a specified value(s))
  • Create a hyperlink field that can even open in a new window
  • Display an image in a field

Calculated Columns are a column type that can be added to any SharePoint list or library:
SP-Calculated-Column-Examples-16-1

The calculated column is then displayed on the list or library and can be used in views.

Calculated Date example:

In this example, the calculated column ‘Estimated Completion’ adds the Estimated Duration to the Start Date to come up the Estimated Completion date:
SP-Calculated-Column-Intro-16-1

Calculated Text example:

In this example the calculated column ‘Active’ which marks all Waiting on Someone, Pending and In Progress requests as active:
SP-Calculated-Column-Examples-16-2

This dramatically simplifies creating views of ‘Active’ requests as now you can just filter the view to show items where Active equals Yes, rather than having to setup 3 filters for each active view:
Calc-Field-Filtered-View-16-1

 

How to create a calculated column

1. Go to the list or library, click on the list/library tab, select the list/library settings option
SP-Calculated-Column-Intro-16-2

2. On the list/library settings page, scroll down to the Columns section and click on the Create Column option.
SP-Calculated-Column-Intro-16-3

3.  Enter a Column Name, choose the Calculated column type.
SP-Calculated-Column-Intro-16-4

4.  Enter in the Formula, please note that when insert Columns into the formula they will be displayed with Brackets around them.  In this example, our formula will add half of the Estimated Duration to the Start Date:
=[Start Date]+([Estimated Duration]/2)
SP-Calculated-Column-Intro-16-5

5.  Finally choose what data type your formula will display
SP-Calculated-Column-Intro-16-7

Completed Example:  The Checkin date calculated field is half way between the Start Date and the Estimated Completion:
SP-Calculated-Column-Intro-16-6

**For more formula examples, see the Calculated Column Formula Examples Tutorial.

 

Calculated Columns missing fields

$
0
0

On some lists or libraries you might not see all the fields on that list or library as Columns that can be inserted into Calculated fields.  Some field types like the ones highlighted below cannot be uses in Calculated Columns:
SP-Calc-Column-Missing-16-2

If I try to create a new calculated column on the All Field Types List, I only see the valid type fields listed where I can insert them into the Formula:
SP-Calc-Column-Missing-16-1

The field types that cannot be used in Calculated Columns are:

  • Choice (Checkbox)
  • Multiple Lines of text
  • Person fields (including the Created By and Modified By fields)
  • Hyperlink
  • Lookup
  • Managed Metadata

 

Work around for missing fields

You can use a workflow to take the value from one of the field types that aren’t allowed in Calculated Columns, and copy that value into a new single line of text field on the list/library.

You will then want to hide the field from the list/library since your workflow will be populating the value.


SharePoint Hide columns on list or library

$
0
0

There are two different ways to hide columns or fields on a list or a library.  Conditionally where you only hide the field some of the time (maybe you want to hide the ‘Completed Date’ column when creating new items), or hiding fields all the time.  This tutorial is for hiding a column from all the list or library forms (New, Edit and View).

SP-Hidden-Fields-16-1

**The column can still be added to list or library views though if desired.

Reasons you might want to always hide a column

  • Make the field hard to edit or change
  • You want a workflow to populate or change the field value
  • You no longer need a column for new submissions but don’t want to delete it and lose all the entered data for the existing submissions

Hiding a column from all list/library forms

1. Go to your list or library, click on the List/Library tab, select List Settings.
SP-Hidden-Fields-16-2

2. On the Settings page, click on the Advanced Settings option.
SP-Hidden-Fields-16-3

3. On the Advanced Settings page, select Yes for Allow Management of Content Types.  Click the OK button to save the setting and return to the Settings page.
SP-Hidden-Fields-16-4

4.  On the Settings page, you should now see at least 1 content type in the Content Type section.  Click on the Content type.
SP-Hidden-Fields-16-5

5.  On the List Content Type page, click on the Column you want to hide.
SP-Hidden-Fields-16-6

6. There will now be 3 column setting options, choose the Hidden option.  Click the OK or Save buttons until you return to the main Settings page.
SP-Hidden-Fields-16-7

Completed Example:  The hidden column can still be shown on views:
SP-Hidden-Fields-16-8

But it will not be shown when creating a new item, editing a item, or viewing an item:
SP-Hidden-Fields-16-9

Nintex Forms checking Attachments

$
0
0

You can validate the number of or even the type of attachments attached to a Nintex form using a new setting in the Attachment field itself.

Double-click on the attachment field on the Form:
Nintex-Forms-Attachment-Validation-16-1

On the Attachment Control Settings, expand the Validation section
Nintex-Forms-Attachment-Validation-16-2

You can set the minimum number of attachments, maximum number, or specify what file formats are allowed to be attached to the form.
Nintex-Forms-Attachment-Validation-16-3

So for the example settings above, the form gives me an error if I don’t have at least 1 attachment.  And the form will only allow doc or docx file extensions, if I try to attach a different file extension a popup error box appears:
Nintex-Forms-Attachment-Validation-16-4

isMemberOfGroup not working Nintex Forms

$
0
0

You can hide panels or fields in Nintex forms by using the isMemberOfGroup inline function.  This function would appear to have several undocumented limitations though.  This tutorial is detailing the limitations of this function, see the How to hide a field or panel in Nintex forms article if you are looking for instructions on how this function is used.

No special characters allowed in group name

The group names that you include inside of the isMemberOfGroup function cannot contain special characters such as an ampersand (&).  If you group does have any special characters in it’s name, you need to change the group name so it will work to hide fields.
NF-ismemberofgroup-troubleshooting-16-1

Two group limit

You can setup the isMemberOfGroup function to check 2 groups using the OR inline function:
NF-ismemberofgroup-troubleshooting-16-2

But it would appear that 2 groups is the limit.  If I try to include 3 or more groups it does not work:
NF-ismemberofgroup-troubleshooting-16-3

Two group number of group members limit?

When using the isMemberOfGroup for only one group, I’ve been able to successfully have it work for large groups.  But, when using the function for 2 groups I’ve sometimes had it not work when 1 or both of the groups have many members in them.  I’m not sure what the exact number of group members limitation is, nor could I find any documentation about this on the Nintex site.

SharePoint Calculated Column Hyperlinks

$
0
0

SharePoint Calculated Columns or fields can be used to create clickable links, these links can also be configured to open in a new tab.  To make the URLs clickable, you have to save the Calculated Column as a Number data type.  I know this is totally crazy, but the number field type will for some reason render html in calculated fields.

Creating clickable Calculated Column links

In this example our list has a single line of text field called ‘Search Topic’, this is the topic you should search for if you want to find more related information about the list item.  What we want to do is display that Search Topic as a clickable link that does a google search for that topic when someone clicks on it.
Calc-Field-Links-16-1

1. Click on the List/Library tab, click on the List/Library Settings option.
Calc-Field-Links-16-2

2. On the Settings page, click on the Create Column option.
Calc-Field-Links-16-3

3. Enter a name for the Column, choose the Calculated type.
Calc-Field-Links-16-4

4A.  Enter the formula in the following format:
=”a href='{Insert URL Here}’>{Text to display}</a>”
Inserted Columns must have double quotes and ampersands: “&[Inserted Column]&”
Example Formula:
=”a href='{Insert URL Here}”&[Inserted Column]&”‘>{Text to display}</a>”
=”<a href=’https://www.google.com/#q=”&%5BSearch Topic]&”‘>Google Search</a>”
Calc-Field-Links-16-5

4B. Example where list column is used for text displayed in Calculated Column
Add “&[Inserted Column Name]&” between > AND </a>
Calc-Field-Links-16-6

4C. Example where link will open in a new tab
Add target=’_blank’ between <a AND href=
Calc-Field-Links-16-7

Completed Example: We now have 3 different calculated fields that all do a google search for the text entered into the items ‘Search Topic’ field:
Calc-Field-Links-16-9

If your inserted column is blank

If you are using a column in your URL and if this column is not required, this could create a URL that doesn’t work.  Because your URL will only be partially completed as the inserted column reference will be blank.

For example let’s say we deleted the Search Topic for Test #2 in our list, example 4B will now also be blank because it was set to show the Search Topic as the link text but example 4C will still have a link, but the link won’t work because it’s missing the search topic:
Calc-Field-Links-16-12

Fix for examples 4A and 4C

Since both of these examples use static text for their links, we will need to edit the formula to ensure that the link text is only displayed if the column (Search Topic) actually has a value entered.

On our calculated column formula, we will need to a add an IF ISBLANK operator.
Add IF(ISBLANK([Inserted Column Name]),””, between = AND “<a
Also add a ) at the very end of the formula:
Calc-Field-Links-16-10

Now the calculated column will be blank if the Inserted Column is blank:
Calc-Field-Links-16-11

More Calculated Column Tutorials

Visit the SharePoint Calculated Column Overview for a full list of calculated column tutorials.

Nintex Forms FormatDate Formats

$
0
0

Using the FormatDate() date function, you can choose to make a date or time display however you would like on your form:
NF-Calculated-Value-Examples-16-8

The table below shows the different date and time formatting options that can be used with the FormatDate() function.  For more examples of formatted or calculated dates, please see the Calculated Values Example Tutorial.

Format Value: Example Returned Value
d Short Date: 4/17/2016 3:30PM 4/17/2016
D Long Date: 4/17/2016 3:30PM Sunday, April 17, 2016
s Sortable Date/Time: 4/17/2016 3:30PM 2016-04-16T15:30:00
MM Month: 4/17/2016 3:30PM 04
MMM Month: 4/17/2016 3:30PM  Apr
MMMM Month: 4/17/2016 3:30PM  April
dd Day: 4/17/2016 3:30PM 17
ddd Day: 4/17/2016 3:30PM S
dddd Day: 4/17/2016 3:30PM Sunday
yyyy Year: 4/17/2016 3:30PM 2016
yy Year: 4/17/2016 3:30PM 15
hh 12 hr: 4/17/2016 3:30PM 3
HH 24 hr: 4/17/2016 3:30PM 15
mm Minutes: 4/17/2016 3:30PM 30
tt AM/PM:  4/17/2016 3:30PM PM
t short time: 4/17/2016 3:30PM 3:30PM
T Long time: 4/17/2016 3:30PM  3:30:00PM
Viewing all 44 articles
Browse latest View live


Latest Images