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

RA-2037: use mother's info to register a child #138

Merged
merged 2 commits into from
May 31, 2024
Merged

RA-2037: use mother's info to register a child #138

merged 2 commits into from
May 31, 2024

Conversation

cioan
Copy link
Member

@cioan cioan commented May 31, 2024

Because the person address widget and the relationships widget have onBlur() and onChange() events that get trigger automatically every time the form is displayed, I had to workaround those limitations when the mother info is included in the registration form. Thanks @mogoodrich for reviewing it!

@cioan cioan requested a review from mogoodrich May 31, 2024 14:34
Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I did have one question you will see @cioan but that is really to understand it better and perhaps suggest a more detailed comment. Thanks!

@@ -137,6 +137,10 @@ fieldset[id\$="-fieldset"] div > div {
if (NavigatorController.getQuestionById(questionName) != undefined) {
NavigatorController.getQuestionById(questionName).questionLi.addClass("done");
}
if (fieldName == 'mother-field') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forget, where does this name "mother-field" get set up? Is it something in our config?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this field gets configured in our pihcore SL config.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks @cioan ! I'm struggling with what the exact comment is, but can we add something here noting that this is a rather specific hack for when having a "mother-field" configured?

@cioan
Copy link
Member Author

cioan commented May 31, 2024

Thanks @mogoodrich !

@cioan cioan merged commit 9a53ef9 into master May 31, 2024
1 check passed
@cioan cioan deleted the RA-2037 branch May 31, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants