locked
Resetting the field values when top level value changes RRS feed

  • Question

  • Hi All,

    I have a control which has multiple (3) fields and they have corresponding values in work item type.

    I dont want all the fields should have a value selected. Whenever i select the value in other field, automatically other values which was already selected should reset. Is this possible?

    Thanks,

    Raj


    Rajesh

    Wednesday, March 15, 2017 6:15 AM

All replies

  • Hi Raj,

    What's the relationship of your 3 fields value? Could <when> and <copy> rules meet your requirement?

    I make an example, when level1 choose AAA, level2 change to AAA, level3 change to 111.

     <FIELD name="Level1" refname="Custom.Level" type="String">
            <ALLOWEDVALUES expanditems="true">
              <LISTITEM value="AAA" />
              <LISTITEM value="BBB" />
              <LISTITEM value="CCC" />
            </ALLOWEDVALUES>
          </FIELD>
          <FIELD name="Level2" refname="Custom.Level2" type="String">
            <WHEN field="Custom.Level" value="AAA">
              <COPY from="value" value="AAA" />
            </WHEN>
            <WHEN field="Custom.Level" value="CCC">
              <COPY from="value" value="CCC" />
            </WHEN>
            <WHEN field="Custom.Level" value="BBB">
              <COPY from="value" value="BBB" />
            </WHEN>
            <ALLOWEDVALUES expanditems="true">
              <LISTITEM value="AAA" />
              <LISTITEM value="BBB" />
              <LISTITEM value="CCC" />
            </ALLOWEDVALUES>
          </FIELD>
          <FIELD name="Level3" refname="Custom.Level3" type="String">
            <WHEN field="Custom.Level" value="AAA">
              <COPY from="value" value="111" />
            </WHEN>
            <WHEN field="Custom.Level" value="CCC">
              <COPY from="value" value="333" />
            </WHEN>
            <WHEN field="Custom.Level" value="BBB">
              <COPY from="value" value="222" />
            </WHEN>
            <ALLOWEDVALUES expanditems="true">
              <LISTITEM value="111" />
              <LISTITEM value="222" />
              <LISTITEM value="333" />
            </ALLOWEDVALUES>
          </FIELD>

    Best Regards


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 16, 2017 12:53 PM