OnChange > clear option values - InfoPath Dev
in

InfoPath Dev

OnChange > clear option values

Last post 11-18-2012 11:17 PM by Mayur Narsale. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-16-2012 08:54 AM

    OnChange > clear option values

    New to forum and hopefully posted to the right category... Relatively new to IP and have implemented cascading hide/show formatting rules to my form based on user response for Yes/No questions. The challenge that I'm facing is for scenarios where users go back to an earlier question and change their response, all answers provided up to that point remain but I'd like to "clear" them out since the change on the upper branch level answer "voids" them. For example: Do you have any kids?: Yes/No > Yes - How many kids do you have? > Yes - What school do they go to? If user changes answer for "Do you have any kids" from "Yes" to "No", the answers to the previously answered questions should clear since they are no longer valid/required. (ie. "How many kids do you have?, "What school do they go to?") Any suggestions are much appreciated. Thanks.
  • 11-18-2012 11:17 PM In reply to

    Re: OnChange > clear option values

    Hi, You need to write rules on the radio buttons which will be triggered when you change the option selected. Right click on the radio button and select 'Manage rules'. Then select 'Action' from the New tab. In Condition you should have 'Radio button = No'. In the field 'Run these actions', select 'Set field's value'. A pop up window will appear, in that, in 'fields' tab select the field which you want to make blank and keep the 'value' tab blank. This will remove the value from the field when you select 'No' in radio button.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.