Hi all. I am using the shinysurveys package to build surveys across multiple tabs. I sketched a code and is working but I would like to include a message that should appear only when the first Tab is clicked or loaded (in this case as Tab1 is showed always first, it should appear at the start of the app and every time Tab1 is clicked). Here is the code for my app:
The code works fine but I do not know what I am doing wrong. In order to show a message for the first tab, I have used observeEvent() and created a condition for the id of tabsetPanel() when tabPanel() takes the value of A1 using showModal() and modalDialog() but when I run the app I did not get the message. I get this without the message sketched on showModal():
I do not if it is possible to add this option. I have looked around trying other packages like shinyBS or bs4Dash but I can not get them working. Also, I found an example with the last package that uses navbar but the message or popover that appears in this app is similar to that I want to implement. Here is the link.
In that page you can see how nice the message appears at the start or when you click the first tab. I wish I could do something similar using showModal() and modalDialog().
Hi all. I am using the shinysurveys package to build surveys across multiple tabs. I sketched a code and is working but I would like to include a message that should appear only when the first Tab is clicked or loaded (in this case as Tab1 is showed always first, it should appear at the start of the app and every time Tab1 is clicked). Here is the code for my app:
The code works fine but I do not know what I am doing wrong. In order to show a message for the first tab, I have used
observeEvent()
and created a condition for the id oftabsetPanel()
whentabPanel()
takes the value ofA1
usingshowModal()
andmodalDialog()
but when I run the app I did not get the message. I get this without the message sketched onshowModal()
:I do not if it is possible to add this option. I have looked around trying other packages like
shinyBS
orbs4Dash
but I can not get them working. Also, I found an example with the last package that uses navbar but the message or popover that appears in this app is similar to that I want to implement. Here is the link.In that page you can see how nice the message appears at the start or when you click the first tab. I wish I could do something similar using
showModal()
andmodalDialog()
.Many thanks.