Open ThomasVermes opened 1 year ago
Hey @ThomasVermes. I'm not sure if I'll be able to add this functionality, but I'll leave this open with a few notes on it.
Possible issues:
ah, then is more complicate than what I tought. I thought it might be an option to save the link in a variable and just opening the link with the module class..
I've decided that I won't be implementing this. I think wanting to open a record as a modal from a report won't see much use compared to just opening in a new tab. In addition to that the issues above also exist. I do think this would be easier to add to the Report Tweaks EM, but due to not see the use case I've decided to not add it as an issue there either.
Dear Adam, not to reopen this issue ;) but a case would be that user have a list of patient and they need to entry some dates from an external tool (which is difficult to import). With the Modal the user would be redirected not to only to the record, but also to the right instrument. Here below a small gif as example of what I've implemented (with javascript and more "help"-Variables).
My users where quite happy with that. Of course they spare probably 2 clicks, but also the fact that they stay on the report page is helpfull..("open link in a new Tab" is not known by everyone =)
That's all, I just wanted to show you some usability =) cheers Thomas
Opening the issue again.
For config we can just have a field drop down per modal config group. If that field is on the report add a button to the cell that opens to the defined modal destination.
Dear Adam, once again great EM allowing a bettere redcap usability!! if I understood correctly, it is possible to open the modal only in a redcap_data_entry_form right? would be possible to active the function also in other pages? We would like to use it in report
nb: to make the report field work as "link" we used this little trick saving the field as calctext
@CALCTEXT(concat('<a class="modale"','>Open Modal<','/a>'))