Codename remove back button on ios

I removed the form header because I don't want to. when i did that, the back button on iOS (on the android android back button) doesn't appear at the bottom of the form.

enter image description here

I tried to override showForm () in StateMachine and call setTitle ("), but the Back button still exists.

@Override 
public Form showForm(String resourceName, Command sourceCommand) {

Form f = super.showForm(resourceName, sourceCommand);
f.setTitle("");

return f;

};

      

Is there a way to remove this button?

+3


source to share


1 answer


This is not true. Override allowBackTo as:



protected boolean allowBackTo(String formName) {
    return false;
}

      

+3


source







All Articles