redcap-em-shazam icon indicating copy to clipboard operation
redcap-em-shazam copied to clipboard

@Default in radio button matrix not working and removing dispayed values

Open MathiasAntunes opened this issue 3 years ago • 3 comments

Hi Andy,

I've been playing a lot with Shazam for numerous projects. We encountered a problems with radio buttons in matrix. We tried to pipe from previous repeating event with @Default="[event-name][field_name][previous-instance]" in a matrix field.

What happens :

  • Without @DEFAULT : Shazam works great and answers are stored and displayed
  • With @DEFAULT : Answers are stored but not displayed (They appear at the page loading but then they are removed). The @Default functionality seems to work but values are also removed at the end of the page loading.

Design : image

MathiasAntunes avatar Apr 06 '21 13:04 MathiasAntunes

Yes - the action tags came after shazam and there is probably some competing order here. If you can send me a simple xml file with an example and then the corresponding shazam setup I can try to debug. The answer is probably to just add a delay to shazam running until the default javascript task is complete...

-a


From: Mathias Antunes @.> Sent: Tuesday, April 6, 2021 6:30 AM To: susom/redcap-em-shazam @.> Cc: Subscribed @.***> Subject: [susom/redcap-em-shazam] @Default in radio button matrix not working and removing dispayed values (#43)

Hi Andy,

I've been playing a lot with Shazam for numerous projects. We encountered a problems with radio buttons in matrix. We tried to pipe from previous repeating event with @defaulthttps://github.com/default="[event-name][field_name][previous-instance]" in a matrix field.

What happens :

Design : [image]https://user-images.githubusercontent.com/23211270/113717703-2dd03480-96ec-11eb-9459-69d2c5fbf4f6.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/susom/redcap-em-shazam/issues/43, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABY5VMJ5MRIDPISU4WXEKDLTHMEG3ANCNFSM42OXZIKA.

123andy avatar Apr 06 '21 16:04 123andy

Ok thanks for the quick answer. Here is an example (with and without @default) : shazam_debug.zip

MathiasAntunes avatar Apr 07 '21 11:04 MathiasAntunes

Sorry. @MathiasAntunes - I haven't had time to get to this... (and may not for some time) -- so if you can fix it and make a PR that is welcome, otherwise it may be a while...

-A

123andy avatar Nov 29 '22 04:11 123andy