Enable Or Disable Fields Using Rule In Nintex Forms On SharePoint 2013 & Office 365


Welcome to an article on “Enable or Disable Fields using rule in Nintex Forms on SharePoint 2013 & Office 365.” This article will be used for every simple form you build on Nintex in SharePoint so I would like to walk you through this functionality on Nintex.

Sometimes we need to enable or disable fields based on a Yes/No field or a check box. In this article we will see the same functionality using rules.
Let’s see how.

  • On your list or library ribbon, click on Nintex Forms.

    nintex

  • You will reach the Nintex Designer View as per the screen below.

    forms

  • In our case, I have created a Enable/Disable, a yes/no column check box with the default title field and on the selection of the check box will try to enable the title field which will be disabled by default.

    save

  • So, let’s add a rule.
  • On your right corner of the designer you will find a button Add Rule.

    add

  • Click on it.
  • The below Rules bar will open.

    rules

  • On the bar, click on Add and configure your rule,

    a. Name :- Provide a name to the rule.
    b. Rule Type:- As for our case it will be ‘Formatting’.
    c. Condition:- Our condition will be not(EnableDisable) which means if my field is not checked in, it
    should be a valid rule.
    d. We have checked in the ‘Disable’ check box so our field will be disabled unless the condition is
    valid.

  • Let’s publish the form now after making the changes.

    confirm

  • Once you click on Publish, click on Create New Item.
  • The screen below of the new form opens with the field disabled by default.

    new

  • Now when you will check the Enable/Disable field check box.
  • The rule will apply and our Title field will become enabled.

    title

  • And it will apply vice versa when you check out.

Here you saw in this article how to enable or disable fields based on yes /no check box. Keep reading articles and keep learning.

Comment On Word Documents In A Document Library In Office 365 & SharePoint 2013


Welcome to an article on ‘How to comment on Word Documents in a document library in Office 365 & SharePoint 2013’. This is a new feature where you can provide comments on the documents in a SharePoint library to show your views about it.

It’s like when you do commenting on the Word file while building the document, you can do the review right away on the library and save it.

Let’s see how a user can comment on a word file through the library.

  • Upload a word file to a document library.DOCUMENT
  • Click on the document to open the Word file.OPEN
  • You will see the Comments option on the right corner of the document.
  • Click on the icon as shown by the arrow.ICON
  • The comments dialog box will open as the screen below.COMMENT
  • Click on ‘New Comment’.NEW
  • Once you post the comment, a small symbol of comment will appear on the document as per the screen below.DOCUMENT
  • When you or an external user clicks on it they will see your comments as below.COMMENTS
  • Under the Comments dialog box, you can either comment on it or you can click it as done or delete it the same as we do while building our documents with review comments.COMMENTS

But this is so easy and available right at your library. You don’t have to download, give the review and then upload thereby saving time and effort.

Here was an article on ‘How to comment on Word Documents in a document library in Office 365 & SharePoint 2013. Watch out for more articles, until then keep learning.

Show Or Hide Fields Using Rule In Nintex Forms On SharePoint 2013 & Office 365


Welcome to an article on “Show or Hide Fields using rule in Nintex Forms on SharePoint 2013 & Office 365”. Today’s article will be used for every simple form you build on Nintex in SharePoint, so I would like to walk you through this functionality on Nintex.

Sometimes we require showing or hiding a file based on a Yes/No field or a check box. In this article we will see the same functionality using rules.

Let’s see how.

  • On your list or library ribbon, click on Nintex Forms.

    forms

  • You will reach the Nintex Designer View as per the screen below.

    nintex

  • In our case, I have created a Enable/Disable a yes/no column check box with the default title field and on the selection of the check box will try to show the title field which will be hidden by default.

    forms

  • So, let’s add a rule.
  • On your right corner of the designer you will find a button Add Rule.

    add

  • Click on it.
  • The below Rules bar will open.

    rule

  • On the bar, click on Add and configure your rule,

    a. Name: Provide a name to the rule.
    b. Rule Type: As for our case it will be ‘Formatting’.
    c. Condition: Our condition will be not (EnableDisable) which means if my field is not check in, it
    should be a valid rule.
    d. We have checked in the ‘Hide’ check box so our field will be hidden unless the condition is
    valid.

  • Let’s publish the form now after making the changes.

    confirm

  • Once you click on Publish, Click on Create New Item.
  • The screen below of the new form opens with the field hidden by default.

    save

  • Now when you will check the Enable/Disable field check box,
  • The rule will apply and our Title field will become visible.

    title

  • And it will apply vice versa when you check out.
Here you saw in this article how to show or hide fields based on yes /no check box. Keep reading articles and keep learning.

Embed Word Document Contents On A SharePoint Page In Office 365 & SharePoint 2013


Welcome to an article on ‘How to Embed Word Document contents on a SharePoint Page in Office 365 & SharePoint 2013’. Our client sometimes wants to attach their documents to their pages so when they do some change on the content of the word file, it will reflect on the page.

This is an awesome functionality for users to update their page without playing by editing the content on the web parts. So for us developers, rather than pointing to a third party tool, we have that on our own SharePoint 2013 and on Office 365.

Let’s see how a user can embed their word files on a SharePoint page

  • Upload a word file to a document library.

    document

  • Click on the Menu dialog option for the selected word document.

    open

  • You will see the preview screen below.
  • Click on the icon as shown by the arrow.

    read

  • You will see a pop-up as per the screen below with an option, “Embed Information”.

    information

  • Click on the option and you will the screen below, Copy the embedded code.

    code

  • Now we will add the embedded code to a page,

    a. Create a page
    b. Go the gear icon and click on Add a page.

    add

  • Provide a name for the page.

    name

  • You will be directed to edit the page as per the screen below.

    edit

  • Click on the ‘Insert’ Tab and choose Embed Code as per screen below.

    embed

  • It will open a dialog box, paste your copied code here.

    code

  • You will see the preview below after pasting the code.

    paste

  • Click on OK.
  • Your page will save and you will see the below page embedded with the document.

    document

Isn’t it awesome? You get your word document content on a page in a quick way. Keep learning!

Pre-Save Action on Document Libraries In SharePoint 2013 And Office 365


Welcome to an article on ‘Pre-Save Action on Document Libraries in SharePoint 2013 and Office 365.’ We developers face an issue when our client wants to have an action done on a document library on a save click.

Document Library uploads the document, and to validate something on the save click is tricky as the save by passes the validation and gets saved.

Solution:

The solution to do any JavaScript validation is Pre Save action. So here is what you need to do.

  • Open your Document Library
  • Under the ‘Library’tab , click on the Form Web Parts.

    form

  • Choose Default Edit Form, you will see the screen below.

    main

  • Click on Add a Web Part,

    add

  • Choose Script Editor, under the Media and Content Web part.

    script

  • Click on Edit Snippet, you will see the screen below.

    embed

  • Use the code below and click Ok.

    Code:

    1. “/jquery-1.8.3.min.js” type=“text/javascript”>
    2. “/jquery.SPServices-0.7.2.min.js” type=“text/javascript”>
    3. “text/javascript”>
    4. $(document).ready(function()
    5. {
    6. });
    7. function PreSaveAction()
    8. {
    9. }

    a. Use the function PreSaveAction() and paste your validation under the function on the code.

    b. Before saving document library the code will check your validation and will get saved.

Doesn’t it solve a lot of queries related to document libraries functions? Keep learning!