# Can SMS schedules be cleared based on a field in a form?

**URL:** <https://forum.communityhealthtoolkit.org/t/can-sms-schedules-be-cleared-based-on-a-field-in-a-form/651>\
**Category:** Technical Support\
**Tags:** configuration\
**Created:** [March 31, 2020, 4:20am UTC](https://forum.communityhealthtoolkit.org/t/can-sms-schedules-be-cleared-based-on-a-field-in-a-form/651 "2020-03-31T04:20:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/michael/32/319_2.png) [@michael](https://forum.communityhealthtoolkit.org/u/michael)\
**Post date:** [March 31, 2020, 4:20am UTC](https://forum.communityhealthtoolkit.org/t/can-sms-schedules-be-cleared-based-on-a-field-in-a-form/651/1 "2020-03-31T04:20:42Z")

</div>

The “Configuring SMS Schedules” [documentation](https://github.com/medic/medic-docs/blob/master/configuration/app-settings.md#configuring-sms-schedules) says that…

> Forms can also be configured to clear the schedule, or silence it for a period of time.

Is it also possible to clear / mute a schedule based on a field in a form, or just based on the form itself?

For example… if I submit a JSON form called “patient\_response” that has a key called `clear_schedule` whose value is a `boolean`, can the core framework be configured to only clear the schedule if that JSON form has `clear_schedule = true`?

---

<div class="post-metadata">

**Author:** ![marc](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/marc/32/602_2.png) [@marc](https://forum.communityhealthtoolkit.org/u/marc)\
**Post date:** [March 31, 2020, 3:50pm UTC](https://forum.communityhealthtoolkit.org/t/can-sms-schedules-be-cleared-based-on-a-field-in-a-form/651/2 "2020-03-31T15:50:19Z")

</div>

Yes, [registrations](https://github.com/medic/medic-docs/blob/master/configuration/app-settings.md#registrations) can be created (trigger: `assign_schedule`) or cleared (trigger: `clear_schedule`) accordingly to fields in a report.

The [patient reports](https://github.com/medic/medic-docs/blob/master/configuration/app-settings.md#patient-reports) can be used to mute a schedule for a period of time, but cannot do so conditionally based on report fields (yet). I thought we had a feature request for this already but couldn’t find it, so please open a feature request if needed.

You can find examples of registrations with field conditions as `bool_expr` in [the Standard config](https://github.com/medic/cht-core/blob/83ac9ec7c8849ae3c261e72d51c77c41803d4096/config/standard/app_settings.json#L482-L493).
