Button rule different on second click RRS feed

  • Question

  • I am using a button in a similar fashion to a nav link in a website.  Once the button is clicked the rule applied is to navigate to a new view.  By problem is I want to have a different rule (a new view) navigated to on a second click. how can this be done?


    Thursday, February 17, 2011 5:14 PM


  • You can do this by adding an additional field to your main datasource; call it "btnClicks" and set the default value to 0.  For the rule you currently have in there, add a condition that says If btnClicks equals 0   switch to view, add another action in that rule to set the field btnClicks value to 1.  Add another rule to that button with a condition of If btnClicks equals 1 switch to view2. 
    • Proposed as answer by Parvez Akkas Friday, February 18, 2011 3:04 AM
    • Marked as answer by Peng Lei Monday, February 21, 2011 9:28 AM
    Thursday, February 17, 2011 6:33 PM