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

Find alternative for jr:choice-name or re-implement support for it #3804

Closed
alxndrsn opened this issue Aug 21, 2017 · 15 comments
Closed

Find alternative for jr:choice-name or re-implement support for it #3804

alxndrsn opened this issue Aug 21, 2017 · 15 comments

Comments

@alxndrsn
Copy link
Contributor

As per enketo/enketo#370, we should either find an alternative way to implement our jr:choice-name() calls, or write an adapter to support it properly in enketo-core.

@abbyad it would help if you can explain the current use of jr:choice-name() in our forms. We have it in 83 different forms currently 🙂

@abbyad
Copy link
Contributor

abbyad commented Aug 21, 2017

There are a couple of ways we are using jr:choice-name().

Show or save label (not value)

Show the user the choice they made earlier in the form as part of the Summary page. Without the jr:choice-name() function the potential workaround is to have a calculate converting the value back to a nice label... but this is difficult to manage and would not work with multiple languages (eg in Standard).

image

Build SMS

Build an outgoing SMS message within the form using values retrieved in the form, that can work in multiple languages and be edited in the form.

image

Summary page

image

@abbyad abbyad removed their assignment Aug 21, 2017
@alxndrsn
Copy link
Contributor Author

Thanks! Note to self: specifically we're trying to avoid uses as per enketo/enketo#370

@alxndrsn
Copy link
Contributor Author

It sounds like this would be worth the effort of fixing with enketo-core's latest release, using external overrides of functionality. This means that we should not need to release our own version and should not need to "monkey patch" our node modules, making future upgrades much simpler.

alxndrsn added a commit that referenced this issue Aug 23, 2017
Closes #3487
Closes #3804

Add jr:choice-name() demo form

Update to latest enketo

Patch enketo to fix jr:choice-name() issue
@alxndrsn alxndrsn assigned garethbowen and unassigned alxndrsn Aug 23, 2017
alxndrsn added a commit that referenced this issue Aug 23, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue

Closes #3487
Closes #3804
@alxndrsn alxndrsn added this to the August 21 - September 4 milestone Aug 23, 2017
alxndrsn added a commit that referenced this issue Aug 23, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue
* Patch enketo-core's date css source file to fix imports

Closes #3487
Closes #3804
alxndrsn added a commit that referenced this issue Aug 23, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue
* Patch enketo-core's date css source file to fix imports

Closes #3487
Closes #3804
@garethbowen
Copy link
Contributor

@alxndrsn Some thoughts, back to you!

@garethbowen garethbowen assigned alxndrsn and unassigned garethbowen Aug 23, 2017
alxndrsn added a commit that referenced this issue Aug 25, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue
* Patch enketo-core's date css source file to fix imports

Closes #3487
Closes #3804
alxndrsn added a commit that referenced this issue Aug 29, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue
* Patch enketo-core's date css source file to fix imports
* Update enketo XSLT to support new style of repeat groups

Closes #3487
Closes #3804
@alxndrsn alxndrsn removed their assignment Aug 29, 2017
@garethbowen garethbowen reopened this Aug 30, 2017
@abbyad
Copy link
Contributor

abbyad commented Aug 31, 2017

@alxndrsn what version is this available in? If it is only in 2.14 I will wait for a beta of that to do AT.

@abbyad abbyad added the Status: Blocked Unable to progress this. label Aug 31, 2017
@alxndrsn
Copy link
Contributor Author

Yeah, AFAIK this is 2.14 onwards.

@sglangevin
Copy link

This should be AT-ed on master. 2.14 has not yet been branched from master, so anything in master is going to be part of 2.14.

@sglangevin sglangevin removed the Status: Blocked Unable to progress this. label Aug 31, 2017
@abbyad
Copy link
Contributor

abbyad commented Aug 31, 2017

Perfect, I'll test this on alpha.dev

garethbowen pushed a commit that referenced this issue Aug 31, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue
* Patch enketo-core's date css source file to fix imports
* Update enketo XSLT to support new style of repeat groups

Closes #3487
Closes #3804
garethbowen pushed a commit that referenced this issue Sep 20, 2017
* Add jr:choice-name() demo form
* Update to latest enketo
* Patch enketo to fix jr:choice-name() issue
* Patch enketo-core's date css source file to fix imports
* Update enketo XSLT to support new style of repeat groups

Closes #3487
Closes #3804
@sglangevin
Copy link

@abbyad has this been sufficiently tested or it needs more?

@abbyad
Copy link
Contributor

abbyad commented Oct 2, 2017

I have not tested yet as part of this issue, but was tested with #3870 as part of 2.13.

@alxndrsn, has anything changed here for 2.14?

@alxndrsn
Copy link
Contributor Author

alxndrsn commented Oct 3, 2017

Should be the same for 2.14. Probably worth checking, though!

@garethbowen garethbowen removed this from the September 18 - October 2 milestone Oct 4, 2017
@sglangevin
Copy link

@abbyad what is the status of AT on this issue?

@abbyad
Copy link
Contributor

abbyad commented Nov 1, 2017

We should retest this on 2.14 to verify that it works as it does on 2.13. I am planning on doing that as part of my next round of AT for 2.14, likely today, but anyone else is free to take this on.

@abbyad
Copy link
Contributor

abbyad commented Nov 3, 2017

Works well in 2.14. Tested with the form from #3281 (comment) but using <h:body class="pages"> since the value is stale until page turns.

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 a pull request may close this issue.

4 participants