问题描述
我有两个字段
Field1 - 有选项是或否
Field2 - 有三个选项可供选择
首先:我需要做些什么才能使Field1为No,而Field2默认不可选?
第二:如果选择Field1为是,我希望Field2变为可选和强制性的。
让我知道,Cyberdyne。
I have two fields
Field1 - has options Yes or No
Field2 - has three options to chose from
First: What do I need to do to make Field1 be No and Field2 not selectable by default?
Second: If Field1 is selected as Yes I want Field2 to become selectable and mandatory.
Let me know, Cyberdyne.
推荐答案
嗨。你在想一个表格吗?
Hi. Are you thinking about a form?
是一个包含许多字段的表单Field1和Field2是表单中的最后两个字段。
Yes its a form with many fields Field1 and Field2 are the last two fields in the form.
然后你可以使field1成为一个带有两个单选按钮的选项组。如果选择no,则默认情况下,您可以使field2不可见:
Then you can make field1 an option group with two radio buttons. When no is selected, as by default, you can make field2 either invisible:
这篇关于默认和必填字段功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!