Considering the issue with the third panel, you can use javascript. Use the on change event of the textbox to set and unset tokens
For e.g
var defaultTokenModel = mvc.Components.getInstance('default', {create: true});
var submittedTokenModel = mvc.Components.getInstance('submitted', {create: true});
var textbox1 = mvc.Components.get("textbox1_id");
var textbox2 = mvc.Components.get("textbox2_id");
textbox1.on("change", function(event)
{
textbox1_value = event
textbox2_value = submittedTokenModel.get("textbox2");
if(textbox1_value!="" && textbox1_value!="")
{
submittedTokenModel.set("Show_Panel_3","true");
defaultTokenModel.set("Show_Panel_3","true");
}
});
Similarly on change event of textbox2 check for values in both the textbox and set the token to Show Panel3 and unset the tokens of Panel1 and Panel2 to unhide the tokens.
... View more