# Stop Next

**URL:** <https://www.dynamicsuser.net/t/stop-next/20766>\
**Category:** Developers Forum\
**Created:** [January 15, 2009, 7:13am UTC](https://www.dynamicsuser.net/t/stop-next/20766 "2009-01-15T07:13:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![subrata.bauri](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@subrata.bauri](https://www.dynamicsuser.net/u/subrata.bauri)\
**Post date:** [January 15, 2009, 7:13am UTC](https://www.dynamicsuser.net/t/stop-next/20766/1 "2009-01-15T07:13:56Z")

</div>

Hi all,

I’m using Nav 5.0 Sp1 (Native).  
I have added some fields in Sales Comment Line Table and created a form RM sheet on it.  
I’m opening this RM sheet Form (Card Type) through Sale Order Line and enter some data. This form is opened against per Sale Line.  
But my problem is that everyone can go to next via NEXT button and enter some thing.  
I want that RM sheet Form should be opened always against Line No. 10000  
Is there any way to stop the NEXT button in this form?

![2063.STOP NEXT.JPG](https://us1.discourse-cdn.com/flex023/uploads/dugusers/original/1X/3e909afaa29b0a9fc93e2bcb29af49f938856f09.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![DaveT](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DaveT](https://www.dynamicsuser.net/u/DaveT)\
**Post date:** [January 15, 2009, 12:56pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/2 "2009-01-15T12:56:27Z")

</div>

Hi Subrata,

You could set a filter on the RM Sheet form (I assume this is a custom form) to line no. 10000. If you use filtergroup the user will not be able to change this.

---

<div class="post-metadata">

**Author:** ![DenSter](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/denster/32/7478_2.png) [@DenSter](https://www.dynamicsuser.net/u/DenSter)\
**Post date:** [January 15, 2009, 1:34pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/3 "2009-01-15T13:34:03Z")

</div>

Turn off AllowInsert on the form

---

<div class="post-metadata">

**Author:** ![DaveT](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DaveT](https://www.dynamicsuser.net/u/DaveT)\
**Post date:** [January 15, 2009, 1:54pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/4 "2009-01-15T13:54:00Z")

</div>

Hi Daniel,

That would still allow him to navigate to another record and modify it.

---

<div class="post-metadata">

**Author:** ![DenSter](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/denster/32/7478_2.png) [@DenSter](https://www.dynamicsuser.net/u/DenSter)\
**Post date:** [January 15, 2009, 2:02pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/5 "2009-01-15T14:02:25Z")

</div>

My suggestion was in addition to your suggestion Dave, not instead of. I think the filter is an excellent idea, I was going to suggest that myself.

---

<div class="post-metadata">

**Author:** ![subrata.bauri](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@subrata.bauri](https://www.dynamicsuser.net/u/subrata.bauri)\
**Post date:** [January 16, 2009, 5:30am UTC](https://www.dynamicsuser.net/t/stop-next/20766/6 "2009-01-16T05:30:31Z")

</div>

Dear Dave,

Thanks for quick reply.[Y]

I have tested it already. [:P]

But still Next button works and getting the error such already exit at time entering next data.[:’(]

I want that it should work as like Request Form of a Report works.[:(]

---

<div class="post-metadata">

**Author:** ![DaveT](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DaveT](https://www.dynamicsuser.net/u/DaveT)\
**Post date:** [January 16, 2009, 12:50pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/7 "2009-01-16T12:50:52Z")

</div>

Hi Sunrata,

If it’s a card form (as per first post) and you do not want to navigate away with the next button then add a message ( even a comment will do it) in the OnNextRecord trigger. Be warned this will limit the functionality of the form.

> [@](#):
>
> I want that it should work as like Request Form of a Report works.

Not sure what you mean by this.

---

<div class="post-metadata">

**Author:** ![subrata.bauri](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@subrata.bauri](https://www.dynamicsuser.net/u/subrata.bauri)\
**Post date:** [January 16, 2009, 1:12pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/8 "2009-01-16T13:12:19Z")

</div>

Dear Dave,

I have tested it on the same trigger but it gives the msg as well as it inserts the data into the table.witl Line No. 20000.

Not Sure what u mean by this

If you run any report with request form, where Next Buttan is not working.It is just an example by our Client.

---

<div class="post-metadata">

**Author:** ![DenSter](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/denster/32/7478_2.png) [@DenSter](https://www.dynamicsuser.net/u/DenSter)\
**Post date:** [January 16, 2009, 2:13pm UTC](https://www.dynamicsuser.net/t/stop-next/20766/9 "2009-01-16T14:13:42Z")

</div>

You cannot disable the VCR buttons, those are part of the standard application.
