# Ok Button - issues with Accept embeds being called for all ENTRY fields

**URL:** <https://clarionhub.com/t/ok-button-issues-with-accept-embeds-being-called-for-all-entry-fields/6071>\
**Category:** questions\
**Tags:** form\
**Created:** [March 24, 2023, 10:11am UTC](https://clarionhub.com/t/ok-button-issues-with-accept-embeds-being-called-for-all-entry-fields/6071 "2023-03-24T10:11:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graeme](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/50afbb/32.png) [@Graeme](https://clarionhub.com/u/Graeme)\
**Post date:** [March 24, 2023, 10:11am UTC](https://clarionhub.com/t/ok-button-issues-with-accept-embeds-being-called-for-all-entry-fields/6071/1 "2023-03-24T10:11:44Z")

</div>

Using C10 ABC, MSSQL

Hi all, on a form 5 of the entry fields have on their Accept embed a call to a Routine that checks the date entered into the field and calculates due dates etc. That all works well when dates are entered into the relevant fields. Accept when I press the forms Ok button to close the form, all of the Accept embeds on the fields are called again – in this example the same Routine is now called 5 times when saving.

I tested in one of the Clarion examples with a Message on a fields Accept embed and it was displayed when the Ok button was selected.

Is there away to stop the fields Accept embeds from being called when the OK button is called?

Thanks

Graeme

---

<div class="post-metadata">

**Author:** ![Mike\_Duglas](https://clarionhub.com/user_avatar/clarionhub.com/mike_duglas/32/1061_2.png) [@Mike\_Duglas](https://clarionhub.com/u/Mike_Duglas)\
**Post date:** [March 24, 2023, 10:38am UTC](https://clarionhub.com/t/ok-button-issues-with-accept-embeds-being-called-for-all-entry-fields/6071/2 "2023-03-24T10:38:08Z")

</div>

Read PROP:AcceptAll help topic.

---

<div class="post-metadata">

**Author:** ![Graeme](https://clarionhub.com/letter_avatar_proxy/v4/letter/g/50afbb/32.png) [@Graeme](https://clarionhub.com/u/Graeme)\
**Post date:** [March 24, 2023, 1:13pm UTC](https://clarionhub.com/t/ok-button-issues-with-accept-embeds-being-called-for-all-entry-fields/6071/3 "2023-03-24T13:13:46Z")

</div>

Thanks so much Mike, worked perfectly. When I went and looked I had used it elsewhere in the app - I can only blame Friday brain :).

In each of the places where I called the Routine I changed it to the below and so far works exactly as I need it to.

```auto
 IF NOT 0{Prop:AcceptAll} THEN
    DO CalcApplicationStartDate
 END

```

Thanks again.
