×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Sharepoint: How to enable a field when a check box is selected on new item form?

Sharepoint: How to enable a field when a check box is selected on new item form?

Sharepoint: How to enable a field when a check box is selected on new item form?

(OP)

In Sharepoint, I need modify a new item form of a list to make a field visible/invisible when a check box is selected:

For example:
There is a checkbox field called "Is XYZ affected?"

When a user selects this field, it will make a hidden field visible "Impact details:"

If "Is XYZ affected?" field is not checked, then "Impact details:" field is invisible.

This is easy to do it in html using javascript, how do I do it on Sharepoint?

Thanks!

RE: Sharepoint: How to enable a field when a check box is selected on new item form?

I'm assuming you are running SharePoint 2010 or 13.

You can do this with SharePoint Designer or InfoPath, no need or HTML or javascript editing. Using InfoPath makes it real easy, but you have to watch out for what version of Office your users are running.

More info on InfoPath and list forms:
http://office.microsoft.com/en-us/sharepoint-desig...

Using SPD to show / hide fields:
Start here:
http://office.microsoft.com/en-us/sharepoint-desig...

Then look at conditional formatting:
http://office.microsoft.com/en-us/sharepoint-desig...

http://www.sharepointed.com/

RE: Sharepoint: How to enable a field when a check box is selected on new item form?

(OP)
thank you ehaze,

I customize the forms in Infopath, add rules, etc... everything is working in the preview of Infopath, but when i published the form to Sharepoint 2010, the rules are not working. Click customize form again to check it in Infopath, the rules are still there...and working in Infopath, but not in sharepoint. it doesn't fire the rule to hide/display the text box when the checkbox is checked. what's wrong? I checked both IE and Chrome, none worked.

For SPD, conditional formatting doesn't allow me to add new clause, only advanced option available, and I don't know how to hide a field using advanced option.

Help again, please!

RE: Sharepoint: How to enable a field when a check box is selected on new item form?

Are you sure your InfoPath form is being published to the SharePoint list?

On the InfoPath form, add a label and change the text.
Publish the form to SharePoint.

Check to see that the label is visible in SharePoint.

*NOTE*
If someone was to modify the list in datasheet view, the rules will not run.

http://www.sharepointed.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close