Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Memberstack
Pricing
API
Login
Build for free
Blog/How to Set a CMS Link Using a Webflow CMS Text Field

How to Set a CMS Link Using a Webflow CMS Text Field

This post will teach you How to Set a CMS Link Using a Webflow CMS Text Field, what a CMS Link using a CMS Text Field feature is and when/why you might want to use it in your project.

Ovidiu·Contributor
|
March 20, 2024·2 min read

How to Set a CMS Link Using a Webflow CMS Text Field

Memberscripts needed

https://www.memberstack.com/scripts/94-set-href-attribute

Tutorial

Cloneable

__wf_reserved_inherit

Why/When would need to set a CMS link using a Webflow CMS text field?

  1. Dynamically add links when you can’t use a Webflow CMS link and you’re stuck with a plain text field.

Sometimes it might make more sense to use a text field to put your URL in instead of getting the URL from a CMS collection, whether it’s because you can’t use a CMS link field or whatever else your particular case may be.

This guide will show you how to quickly and easily add dynamic links to plain text fields.

Setting a CMS link using a Webflow CMS text field

To set a CMS link using a Webflow CMS text field, we’re going to use MemberScript #94 – Set href Attribute. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting it up

All you need to do is add the following attribute to your text field:

  • ms-code-href=”VALUE”

For the attribute’s value, just choose whichever dynamic value you need on your page.

You can also write anything in it or even use another script to pull the link from another part of the page.

Making it work

Now that you’ve added the attribute to your input field, all you need to do is add the MemberScript #94 custom code to your page, before the closing body tag.

Conclusion

That’s everything, you can now go ahead and test the dynamic link on your live site.

If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.

Blog image

Our demo can help you use anything, including Webflow CMS plain text fields, to set your href attributes.

Take me to the Scripts

Written by

Ovidiu

Contributor

Contents

  • Memberscripts needed
  • Tutorial
  • Cloneable
  • Why/When would need to set a CMS link using a Webflow CMS text field?
  • Setting a CMS link using a Webflow CMS text field
  • Setting it up
  • Making it work
  • Conclusion
  • Take me to the Scripts

Share

Explore Memberstack

  • All Features
  • Customer Showcase
  • Templates
  • Find Experts
  • Pricing
  • Help Center

Product

  • Full Feature List
  • User Accounts
  • Gated Content
  • Secure Payments
  • API & Integrations
  • Data Tables
  • Memberstack & Webflow
  • Memberstack & Claude Code
  • Memberstack & WordPress
  • Create a new account
  • 2.0 Log in
  • 1.0 Log in
  • Pricing

Learn about Memberstack

  • Showcase
  • Testimonials
  • Why Memberstack
  • Memberstack vs Outseta
  • Memberstack vs Memberspace
  • Memberstack vs Webflow Memberships

Company

  • About
  • Careers
  • Changelog
  • Partnerships(email)
  • Contact Us(email)
  • X
  • LinkedIn
  • "Do Not Sell My Data" Promise

Resources

  • Vibe Coding
  • Templates
  • Components
  • MemberScripts
  • Data Attributes
  • Find Experts
  • Hiring Guide
  • Webflow Slack Community
  • WordPress Slack Community
  • Support Forum
  • Help Center
  • Blog
  • llms.txt (for AI)
  • llms-full.txt (for AI)
AICPA
SOC

SOC 2 TYPE 1

CERTIFIED

GDPR

COMPLIANT

CCPA

COMPLIANT

Privacy PolicyTerms of ServiceCookie PolicySecurity Policy

© Memberstack Inc. 2018 - 2025. All rights reserved.

Memberstack - The no-code membership platform for any website | Product Hunt