Skip to main content
Forms and bookings are in alpha and only work on workspaces that have early access. Hooks and their responses may change.
Submissions and bookings are stored in Replo. These hooks hold no styling, so each site designs its own form and calendar.

forms/use-forms

@replohq/sdk/forms/use-forms

FormAnswerValues

Answers keyed by field key: text, a yes/no, a number, or a list of choices.

getReviewStructuredData

JSON-LD for a product page’s search listing: put it in a <script type="application/ld+json"> when summary.count is above zero.

groupSlotsByDate

Groups slots by the business’s calendar date (“2026-11-14”).

useManagedBooking

Loads and changes a booking from the secret link in its confirmation email.

useReleaseBookingHold

Gives back a held time when the visitor goes back or leaves.

useReploFileUpload

Uploads one photo or PDF; put the returned fileRef in that field’s answer.

useReploForm

Loads a form’s live questions, so an owner’s edit shows on the site without a rebuild.

useReploFormSubmit

Submits a form with the landing page’s campaign tags; spread honeypotProps on a hidden input to discard bots. A quiz’s score and result come back with the submit. A review form’s review.status says whether the review is live: on a site that uses its own domain, where Replo’s bot check can’t run, every review waits for approval unless it came from a review request email.

useReploReviews

Published reviews with their totals, for a product page or a reviews page. The totals cover every review of the product, whatever star or photo filter is on, so the bars stay full while a visitor filters.

useReploReviewVote

Counts a visitor’s “helpful” (1) or “not helpful” (-1) on a review; voting again changes it. Replo counts one vote per review per network (an IP address, or one IPv6 /64), not per browser: a reload or another browser adds none, and people sharing an address share a vote.
Also exported

forms/form-logic

@replohq/sdk/forms/form-logic

fillAnswers

Replaces each {field_key} in a message with that answer, such as “Thanks {first_name}” to “Thanks Ana”.

findSlotField

The form’s booking question, if it has one.

FormStep

One screen of a stepped form: the questions up to the next section.

getBookableKey

The event type a booking question books, after routing on an earlier answer; pass submittable answers.

getFormSteps

Splits fields into steps at each section; pass visible fields, and steps with nothing to show are dropped.

getPrefillAnswers

Answers from the link, such as ?email=a@b.co&services=Cut,Color; values that don’t fit a question are ignored.

getQuizResult

A quiz’s score (points quizzes) and result from the visitor’s answers, or null when the form has no scoring; the server saves the same.

getSubmittableAnswers

The answers to send: only questions the visitor was asked (hidden fields included).

getVisibleFields

The questions a visitor is asked, in order, given their answers so far.
Also exported