Lookup Docs

DocsWidget

Edit a service-times field as rows of day, time and label, while it still submits one plain string.

Wrap a service-times field in <church-service-times> to edit it as rows of day, time and label, the same way Here's My Church does. The field keeps one plain string, such as Sun 9:00 AM (Main Service); Wed 7:00 PM, so it submits like any input.

html
<church-service-times>
  <textarea name="times" data-hmc-field="serviceTimes"></textarea>
</church-service-times>
<script type="module" src="https://lookup.heresmychurch.com/sdk/0.4.0/service-times.js"></script>

When <church-lookup> fills a serviceTimes field inside <church-service-times>, the rows update with it.

esc

Ask AI

Answers come from these docs, written by an AI model on Cloudflare Workers AI. Check anything important against the linked page.