FS-4861 - Show or hide Welsh-specific fields depending on Welsh available toggle #147
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
Show or hide Welsh-specific fields depending on Welsh available toggle
Description
FAB users are asked on the “Create a Fund” page to specify whether Welsh is available for the fund. However, regardless of what they select, we show fields that are only relevant if the answer is yes (Welsh is available), e.g., “Description (Welsh)”. This clutters the interface unnecessarily.
To resolve this, we should only show Welsh-specific fields if Welsh is selected as available. We should do this for fields on both the “Create a Fund” and “Create a Round” pages. We should move the Welsh available toggle above all Welsh-specific fields so that the user flow makes sense.
Testing instructions
Pre-requisites...
The below instructions are relevant for the dev environment. If you are testing locally, you will need to change the URLs.
Test 1 - Welsh available toggle affects visibility of fields on "Create a Fund" page
Test 2 - Welsh available toggle deletes data from hidden fields
Test 3 - Welsh available for a fund affects visibility of fields on "Create a Round" page