フォームを含む Android アプリを作成しています。フォームには、ユーザーが前の質問に「はい」と答えた場合にのみ含まれるフィールドがいくつかあります。たとえば、ユーザーはローンを申請しています。そのため、ユーザーは名前と住所を入力するよう求められます。次に、ユーザーは尋ねられWhat is your employment statusますか?ユーザーが回答した場合、employedまたはユーザーが、、などのデータを入力するフォームにself-employedセクションをemployment追加する必要があります。job titleemployer namesalary
次に例を示します。
first name: John
last name: Smith
marital status: (if user selects married, then a section about spouse should be added to the form)
employment status: (if user selects employed, then a section about employer should be added to the form)
date of birth:
email:
conditional sectionsは、それらをトリガーした質問のすぐ下に追加されないことに注意してください。むしろ、それらはフォームの後の位置に追加されます。