Quote from
pfranck on July 12, 2021, 5:24 pm
I am trying to develop a website to run a social science experiment (sociology). The first page needs to have a popup/alertbox/messagebox that has the consent form on in. I need two buttons, one that when the participant accepts the consent form they are sent to the second page for instructions. This would require the GotoPage. The other is a cancel button that redirects them away from the experiment (OpenURL). However I am having difficulty with the syntax and getting this all within one Messagebox function.
The general idea would be:
MessageBox "Consent Form" "This will be the consent form message" "[Proceed], [Close]" ""
if MessageBox "Proceed"
GotoPage "instructions" .secondpage
Endif
if MessageBox"Close"
OpenURL "www.somewebsite.com"
Endif
I am trying to develop a website to run a social science experiment (sociology). The first page needs to have a popup/alertbox/messagebox that has the consent form on in. I need two buttons, one that when the participant accepts the consent form they are sent to the second page for instructions. This would require the GotoPage. The other is a cancel button that redirects them away from the experiment (OpenURL). However I am having difficulty with the syntax and getting this all within one Messagebox function.
The general idea would be:
MessageBox "Consent Form" "This will be the consent form message" "[Proceed], [Close]" ""
if MessageBox "Proceed"
GotoPage "instructions" .secondpage
Endif
if MessageBox"Close"
OpenURL "www.somewebsite.com"
Endif