dependent field on widget

sayali deshpande asked on December 2, 2016 12:55

Hi,

Scenario is I have radio buttons 1)category 2)galley

If I select category radio button , multiple choice category should display on widget. If I select gallery radio button, drop-down of gallery should display on widget.

I have 3 fields on widget

1)SelectOption - Values are 1;Category 0; Gallery - checked has dependent field

2)categories- checked depending on another fields and in Visibility condition: SelectOption.Value=="Category"

3)gallery- checked depending on another fields and in Visibility condition: SelectOption.Value=="Gallery"

But It is not working for me. Please Suggest solution .

Recent Answers


David te Kloese answered on December 2, 2016 14:08

the value should be 1 or 0... not the display value

so: SelectOption.Value=="1"

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 2, 2016 14:08

This functionality is setup or coded into a webpart. Have you set this up already in there and it's not working or what have you done?

0 votesVote for this answer Mark as a Correct answer

sayali deshpande answered on December 2, 2016 14:37

Hi David te Kloese ,

This is not working for me.

Hi Brenden Kehren, I have created webpart and these fields are setup in widget itself from properties.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 5, 2016 06:38

So these properties need to be defined in the webpart code and definition within the UI. Then you can set dependencies on other fields at the webpart level assuming you want it to act the same for all widget instances. Use the has depending fields and depends on another field check boxes. Then set the value based on ColumnName.Value

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.