Skip to main content
Post Reopened by Robert Lindgren
More specific that I need the sharepoint syntax for a choice type field
Source Link
John
  • 13
  • 2
  • 5

Im hoping someone could supply me the proper SHAREPOINT SYNTAX to use in JQUERY code to check what the value of a choiceSHAREPPOIINT CHOICE TYPE field is.

I thought I needed to check a checkbox type field so I started with:

 if ($("input[title$='Phone Data Collection']").is(':checked'))

...and looked for a change event with...

 $("input[title$='Phone Data Collection']").click(function()

{

    //If checkbox is checked then hide the fields

    if (this.checked)

But now that I know it is a choiceSHAREPOINT CHOICE TYPE field I'm a little lost. Please I'm not returning the SHAREPOINT CHOICE TYPE field value and I don't know who to trigger the SHAREPOINT CHOICE TYPE field change event. Please help...

Im hoping someone could supply me the JQUERY code to check what the value of a choice field is.

I thought I needed to check a checkbox type field so I started with:

 if ($("input[title$='Phone Data Collection']").is(':checked'))

...and looked for a change event with...

 $("input[title$='Phone Data Collection']").click(function()

{

    //If checkbox is checked then hide the fields

    if (this.checked)

But now that I know it is a choice field I'm a little lost. Please help...

Im hoping someone could supply me the proper SHAREPOINT SYNTAX to use in JQUERY code to check what the value of a SHAREPPOIINT CHOICE TYPE field.

I thought I needed to check a checkbox type field so I started with:

 if ($("input[title$='Phone Data Collection']").is(':checked'))

...and looked for a change event with...

 $("input[title$='Phone Data Collection']").click(function()

{

    //If checkbox is checked then hide the fields

    if (this.checked)

But now that I know it is a SHAREPOINT CHOICE TYPE field I'm a little lost. I'm not returning the SHAREPOINT CHOICE TYPE field value and I don't know who to trigger the SHAREPOINT CHOICE TYPE field change event. Please help...

Post Closed as "Not suitable for this site" by Eric Alexander
Source Link
John
  • 13
  • 2
  • 5

SP 2013 - JQUERY to check the value of a choice type field

Im hoping someone could supply me the JQUERY code to check what the value of a choice field is.

I thought I needed to check a checkbox type field so I started with:

 if ($("input[title$='Phone Data Collection']").is(':checked'))

...and looked for a change event with...

 $("input[title$='Phone Data Collection']").click(function()

{

    //If checkbox is checked then hide the fields

    if (this.checked)

But now that I know it is a choice field I'm a little lost. Please help...