2

I have a custom list and would like to know if anyone knows if there is a way to show and hide fields according to choice selection using a workflow?

  • why dont you use simple javascript and css? – harshal gite Jun 7 '17 at 5:56
  • The reason I have asked for another solution is my custom form refuses to acknowledge the JavaScript I usually insert - it will work in other custom forms - it has other styles and script in the page. Something is causing a conflict and I am out of time to trouble shoot so a new solution is needed. – garvon-77 Jun 13 '17 at 0:22
1

There are few possible ways:

  1. Use JavaScript/CSS in the Content Editor Webpart to show/hide the fields

  2. Use of Content Types. A very useful article/tutorial here

  3. Create a custom form through SharePoint Designer or PowerShell and hide the fields not required. Some information here and here

  • I know I am able to do this with script - wanted to know if it could be done with workflows – garvon-77 Jun 8 '17 at 2:03
  • 1
    Did you check option 2 – SharePointer Jun 8 '17 at 6:25
  • I have had a closer look at this option. The reason I have asked for another solution is my custom form refuses to acknowledge the JavaScript I usually insert. It may be a solution. Thanks – garvon-77 Jun 13 '17 at 0:20
  • Did you manage to get this working? – SharePointer Aug 16 '17 at 18:11
  • NO I haven't got back to it. I have been pulled away doing other work. I hope to get back to it soon. – garvon-77 Aug 20 '17 at 22:51
1

If you have content types enabled to show / hide fields the workflow can set the content type and therefore changing what the next user sees when they open the item.

Here is a related post with information about a workflow setting content types to change: https://stackoverflow.com/questions/4489477/sharepoint-change-content-type-in-sharepoint-designer-using-workflow

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.