百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

formsmd

> 数据库
开源

以开发者为先, 开源 类型表单替代方案(以前称为 Blocks.md)

773 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

以开发者为先, 开源 类型表单替代方案(以前称为 Blocks.md)

Forms.md: 以开发者为先, 开源 Typeform 替代品


***

## Usage

Create forms programmatically using the Composer class, then initialize them with the Formsmd class by passing in the template.

JavaScript import "formsmd/dist/css/formsmd.min.css"; // 如果是 RTL 语言环境,请导入 formsmd.rtl.min.css import { Composer, Formsmd } from "formsmd";

// 创建具有 ID 和提交点的表单 const composer = new Composer({ id: "onboarding-form", postUrl: "/api/onboard" });

// 为职位创建选择输入 composer.choiceInput("position", { question: "你的职位是什么?", choices: ["产品经理", "软件工程师", "创始人", "其他"], required: true });

// 如果用户选择"其他"职位,则创建文本输入 composer.textInput("positionOther", { question: "其他", required: true, labelStyle: "classic", displayCondition: { dependencies: ["position"], condition: "position == 'Other'" } });

// 开始新的幻灯片,进度指示器为 50% composer.slide({ pageProgress: "50%" });

// 为用户发现产品的方式创建选择输入 composer.choiceInput("referralSource", { question: "你是如何听说我们的?", choices: ["新闻", "搜索引擎", "社交媒体", "推荐"], required: true });

// 如果用户是通过推荐方式发现的,则开始新的幻灯片,仅在该条件下显示,进度指示器为 75% composer.slide({ jumpCondition: "referralSource == 'Recommendation'", pageProgress: "75%" });

// 为推荐人电子邮件地址创建电子邮件输入 composer.emailInput("recommender", { question: "谁推荐了你?", description: "请输入推荐人的电子邮件地址。" });

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptformform-builderformsgoogle-sheets

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库