locked
Contact Picker : Resetting back to blank !? RRS feed

  • Question

  • Hello all,

    I'm utilizing the ContactPicker to select user names,
    but once validate, the AccountId is saved into a separate isolated text field,
    the Picker box itself then needs to be emptied out displaying blank.

    So far, I have used the AccountId 'Changed' event, and/or the isolated text field's Changed event, to set each of the 3 'Person' nodes to "".

    When I enter my first criteria into the Contact Selector and validate, this all works fine.
    The appropriate AccountId gets put into the separate text field, the 3 'Person' nodes are set to "", and the ContactPicker displays nothing in it's display.

    However, if I now enter a different name in the Selector, the behavior is different.
    Yes, the new value gets carried into my separate text field.
    Yes, the 3 'Person' nodes get set to "" (I added them as a repeating table in the form to visualize what was going on)
    However, the text box within the Picker Control, still displays the person's name.
    It does not seem to update after I have set the 3 nodes to "".

    In code I have checked that there is only 1 'Person' row, so it's not an issue there.
    In my repeating table I can see DisplayName,AccountId,AccountType all empty.

    Could anyone help me understand what I am missing to make this work ?

    Many Thanks

    Tuesday, October 1, 2013 11:35 AM