# genericForm.processBack() method

**URL:** <https://community.asterisk.org/t/genericform-processback-method/42791>\
**Category:** Digium Phone API\
**Created:** [May 15, 2013, 8:50pm UTC](https://community.asterisk.org/t/genericform-processback-method/42791 "2013-05-15T20:50:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mollett](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mollett](https://community.asterisk.org/u/mollett)\
**Post date:** [May 15, 2013, 8:50pm UTC](https://community.asterisk.org/t/genericform-processback-method/42791/1 "2013-05-15T20:50:57Z")

</div>

Is there an example of what could/should be done in the genericForm.processBack() method? I’ve got a numeric field and this method is getting called whenever the Back soft key is pressed. I didn’t even realize the callback method was available until I got the following error:

genericForm.js:566: TypeError: Object # has no method 'processBack’  
this.formObjects[this.activeForm].processBack();  
^  
TypeError: Object # has no method 'processBack’  
at Object.onBack (genericForm.js:566:36)  
at Input.onsoftkey4 (native)  
at Input. (unknown source)

Is the goal of the “Back” button to go back to the previous screen, if any, or to move backwards (without destructive delete) in the current string? Also, is there a way to turn it off?

---

<div class="post-metadata">

**Author:** ![sruffell](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/sruffell/32/49_2.png) [@sruffell](https://community.asterisk.org/u/sruffell)\
**Post date:** [May 16, 2013, 6:07pm UTC](https://community.asterisk.org/t/genericform-processback-method/42791/2 "2013-05-16T18:07:54Z")

</div>

Hi mollet,

It’s used when there are multiple forms and you want to return to the previous screen without submitting the current one. If you only have a single level, back should just background / close the app.

There is no way to disable it that I can see.

I’ve added a default handler that will just background the application in the [weather.app](https://github.com/digium/digium-phone-apps/commit/cdc7fda631a852dd332fb660ddd68d30fa59b) in the [github.com/digium/digium-phone-apps](http://github.com/digium/digium-phone-apps) repo.

---

<div class="post-metadata">

**Author:** ![mollett](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mollett](https://community.asterisk.org/u/mollett)\
**Post date:** [May 16, 2013, 6:16pm UTC](https://community.asterisk.org/t/genericform-processback-method/42791/3 "2013-05-16T18:16:54Z")

</div>

Thanks, Shaun. Might I suggest that it be labeled “cancel” rather than “back?” Since it’s right next to the “delete” soft key, the term “back” can be a bit confusing, at least to me.

---

<div class="post-metadata">

**Author:** ![sruffell](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/sruffell/32/49_2.png) [@sruffell](https://community.asterisk.org/u/sruffell)\
**Post date:** [May 16, 2013, 6:49pm UTC](https://community.asterisk.org/t/genericform-processback-method/42791/4 "2013-05-16T18:49:00Z")

</div>

Yeah, I can see that. Or maybe at least be configurable?
