go-admin icon indicating copy to clipboard operation
go-admin copied to clipboard

[Question]怎么取当前表单项的值???

Open xmwilldo opened this issue 5 years ago • 0 comments

Description [describe your questions]

问题是这样的,我的表单的第二个下拉框依赖第一个的值,所以我应该怎么取第一个表单项的值去ajax请求拿第二个表单的数据???

Example code [If you have any code info]

formList.AddField("影视资源", "movie_id", db.Int, form.SelectSingle).
FieldOptions(movieOptions).
FieldOnChooseAjax("movie_investment_id", `/test/aaaa?movie_id=1`, handler)

formList.AddField("招商项目", "movie_investment_id", db.Int, form.SelectSingle)

Others [screenshots or other info]

xmwilldo avatar Dec 15 '20 12:12 xmwilldo