Using freeform on another CMS, I was able to pass the last segment of the previous page url (when navigating to the form page) to a form field in the freeform composer, is this feature possible in the Craft version? Or alternatively, would this be possible passing an entry title? Thanks

1 Answer 1


You can use the overrideValues parameter to set field values automatically and dynamically. E.g.

{{ craft.freeform.form("composerForm", {
    labelClass: "form-label",
    inputClass: "form-control",
    overrideValues: {
        myFieldHandle: entry.title,
        myOtherField: craft.app.request.getSegment(3),
}).render() }}
  • works a charm :)
    – Kev N
    Jan 15, 2019 at 23:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.