Webflow Logic

Passing Hidden Data to Logic Forms

No items found.
Overview
Form to CMS
Adv
3:36
201
Sending Emails from Logic
Adv
201
Element Triggers
Adv
202
Limitations & Workarounds
Passing Hidden Data to Logic Forms
Adv
301
No items found.

Unlike regular forms, Logic does not recognize hidden input fields, which means that this won't work;

<input type="hidden" name="slug" value="this-page">

Because it's very type-specific, it wants to know the nature and format of what your submitting so that it can be handled internally as a strongly-typed value - an email, plain text, a phone number, and so on.

Workaround

Instead of using an embed with a hidden input type, use a regular input field, and populate it using script. Then hide it using a class to make it invisible to the user.

If you are data-binding content and want to bind the value the way you would in an Embed, you can do this with SA5's Dynamic Attributes and CMS-bind the x-value attribute to have that value automatically set.

Notes

https://discourse.webflow.com/t/logic-trigged-by-form-no-hidden-field/230954/4

Table of Contents
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.