Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update form data on radio button change in contact relationship form (#7226) #7446

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Otanga-Otieno
Copy link
Contributor

@Otanga-Otieno Otanga-Otieno commented Nov 4, 2024

Close #7226
Close #7227
When a user clicks "I know the name" then "I don't know the name" when creating a contact's relationship, the form data is not updated; Any entered names are retained, otherwise the form won't submit and will ask for the name(s) to be entered. I have added a function to clear the form fields that are used when "I know the name" option is selected. This function is called when a user clicks the "I don't know the name" radio button. This solves the above issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant