-
Notifications
You must be signed in to change notification settings - Fork 254
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
custom date picker and "js show if" #603
Comments
I think you were on the right track by triggering
and
The Bootstrap classes in the JavaScript file were out of date so I changed them. |
Hello, Thanks alot for looking into this. I confirm this issue to have been fixed. I am marking this ticket to closed. Much appreciated. Thanks! |
Hello,
These are related to the date control so re-opening the ticket instead of new issue. Thanks |
The
The validators work via the jQuery Validation plugin, so the You could write JavaScript that detects if the device is Android and then converts the field to text:
so that the browser treats the field as plain text. |
Thank you for reverting back on this. I should have been bit more clear earlier. Let's see if I can clarify further:
|
I am not seeing what you are seeing. When I use my |
Hello there, I can confirm that setting the field to text in javascript does work along with its proper validation. However, after playing around a bit, it seems like there is a usage specific behavior or possibly a bug in the code. We can see the behavior using code below which has minor changes to your example. The validation stops working when the last field is commented/removed as shown. Do you see some issue with usage as such?
|
In 1.4.27 I changed the jQuery Validation Plugin settings so that this will work more consistently. |
Works now, thank you! |
Problem: Date dependent controls show and hide perfectly with DA's built-in date picker using "js show if" but stop to show/hide with datereplace.js included in the interview.
Question: Is there anything specific that needs to be taken into account while using "js show if" with variable set by custom date picker like as demonstrated here https://docassemble.org/docs/recipes.html#customdate . I see note that datereplace.js adds nameless elements to DOM but for "js show if" DA matches element name mentioned in javascript expression. I also tried to trigger onchange on the hidden element but that does not seem to help. Thanks
The text was updated successfully, but these errors were encountered: