-
Notifications
You must be signed in to change notification settings - Fork 11
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
fx-items errors when additional textnodes are present for label #246
Comments
Hi, I’m trying to implement a multiple choice questionnaire form with single selection choice questions. I’m not able to put a variable in the name attribute if the input tag in order to provide a unique name for a group of controls. |
Hi Jake, could you provide an example page that shows your problem? Thanks
Jake Bourne ***@***.***> schrieb am Sa., 14. Sept. 2024,
10:03:
… Hi,
Could this also be the cause of an issue I’m having with radio button
controls when placed in groups on the same page?
I’m trying to implement a multiple choice questionnaire form with single
selection choice questions. I’m not able to put a variable in the name
attribute if the input tag in order to provide a unique name for a group of
controls.
—
Reply to this email directly, view it on GitHub
<#246 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADWFW5S6IYAGTM7ZSX7SPLZWPUVFAVCNFSM6AAAAABDNJAMZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHEYDENBWGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Joern, Absolutely - here is the page which show the problem with radio button groups. As the fx-control is being shown within a fx-repeat, I am trying to set the @name attribute of the input[type='radio'] to something like "q{$qno}" so it will be be unique across iterations of each question. Thanks,
|
@coloneltravis investigated a bit on it - surprisingly leaving the @name away completely gives better results. At least now the value is being set correctly for the respective answer. However this reveals another issue - you need to click at least twice to select a radio. This has to do with repeat index setting i guess - the index should be set immetiately. However the way you tried should actually work but isn't. We'll dive a bit deeper tomorrow to fix this. |
Hey, We looked into this, there are multiple issues going on:
Even with the template expressions updated after a refresh and setting I'm going to try to minimize that update: maybe make a property on all Fore elements of which XPaths they use. For a click in a repeat we know we can ignore all refreshing of all Fore elements that do nothing with the Thanks so much for bringing this up! |
Example:
/demo/fx-control.html
The additional 'foo' textnode will cause an error when evaluating the expression. Also lets the code run into a syntax error and throws browser out-of-state - need to completely reload in a private window to make Chrome behave again.
The text was updated successfully, but these errors were encountered: