Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Reset SelectItem to first option

    Here is my scenario: I called setDefaultToFirst(true) on a SelectItem. The user chooses the 2nd option and hits submit. Later, he returns to the page. The desired result is that the page should be reseted so he can input new values. However, the SelectItem is still on the 2nd option when he returns. Is there anyway to reset the SelectItem back to the first option?

    I tried calling DynamicForm.reset() but that didn't work.

    Thanks in advance for any suggestions!

    #2
    Use clearValues() to reset all fields to default values.

    Comment


      #3
      It worked! Thank you so much!

      Comment

      Working...
      X