我有一种形式,下一个按钮。在点击这个下一个按钮时,它应该导航到其他表单。使用Alpacajs从一种形式导航到另一种形式
我已经创建了两种形式,但我无法链接它们。
$("#field1").alpaca({
"schema": {
"title": "Name Info",
"type": "object",
"properties": {
"firstName": {
"title": "First Name",
"type": "string"
},
"lastName": {
"title": "Last Name",
"type": "string"
}
}
},
"options": {
"form": {
"buttons": {
"next": {
"click": function() {}
}
}
}
}
});
你能告诉我们你的源代码吗? 。 – Genzotto
$( “#字段1”),羊驼({ “纲目”:{ “称号”: “名称信息”, “类型”: “对象”, “属性”:{ “名字”:{ “头衔”: “名”, “类型”: “串” }, “姓氏”:{ “称号”: “姓”, “类型”: “串” } } } , “options”:{ “form”:{ “buttons”:{ “next”:{ “click”:function(){ } } } } } }); – smileisbest
这是我的第一种形式,有两个字段firstname和lastname。接下来有一个按钮。点击下一步,它应该导航到其他表单。我有一个查询,如何从这个表单导航到其他表单。我必须在这个点击函数内写入,以便导航到其他表单 – smileisbest