-
Notifications
You must be signed in to change notification settings - Fork 36
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
Language Change makes Conditional Panels Ineffective on Form #6039
Comments
Ah! An oversight Agent type, and a few other pick lists are defined on the front-end, rather than coming from the database - and the titles for such pick list items are coming from the localization, rather than database. specify7/specifyweb/frontend/js_src/lib/components/PickLists/definitions.ts Lines 27 to 55 in c55f4dd
In conditional forms, the matching happens based on formatted values (title) rather than raw values (what's stored in the database - name or value), so it can depend on the language. Possible solutions:
|
Thank you for your prompt response. Unfortunately I've been trying to apply the first and third solutions for the last hour without success. Can you show me an example of code to apply these multiple conditions? I have tried |
I am sorry, I should have been more clear. <rows condition="agentType=Other"> ... </rows>
<rows condition="agentType=Andere"> ... </rows>
<rows condition="agentType= Autre"> ... </rows> I know it is not ideal that you would have to duplicate the same form 2-3 times. I do not think an easier workaround is available for you until it is fixed on our side |
Describe the bug
From Marion at MFN Berlin:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
changing language shouldn't cause conflict with form definition. Using new default XML strings instead of localized strings would allow the text to be written in English and function in all languages.
Screenshots
If applicable, add screenshots to help explain your problem.
Conditional Agent form in English:
Conditional Agent form in German:
"Person" is spelled the same and works in both languages, but the different spellings of other pick list items ("Group" and "Gruppe") cause conflict and don't render on the form.
Please fill out the following information manually:
Reported By
Marion at MFNB
The text was updated successfully, but these errors were encountered: