Help with alternate method to open Modal

  • AgilityAssoc.Canada
    Asked on April 24, 2019 at 9:01 AM

    Hi,

    I recently created a Modal for two of my forms; 83354135430955. Before this, I had embed iFrame with a PDF and used a yes / no radio button to open it. With the new method I have no record of them reading it or not so, I would like to use the radio button again in-place of the black button to open the Modal. I have played around with some options like injection the code for the radio buttons into the Modal code but that didn't work like expected. So, can I use a condition to open the Modal if the radio button is selected "yes" and remove the black button?  

    1556110840radio as button Screenshot 10

    Thanks,
    Robert

  • David JotForm Support
    Replied on April 24, 2019 at 11:19 AM

    There isn't currently a way to conditionally open a modal window.  It would be possible to show/hide the text conditionally, but not open it up similarly to how it is now.  HTML/CSS code cannot be added to radio button options so it wouldn't be possible to style the radio button field and adding any sort of button to a Text field wouldn't log the selections made.

  • AgilityAssoc.Canada
    Replied on April 24, 2019 at 12:31 PM

    Hi David,

    I have been trying ways to do this for hours now. I almost had it by displaying the Modal by default then hiding it and displaying it with the radio buttons. But then the Close button on the modal wouldn't work.
    I also thought there might be a way to use id #open with a condition, no success there either. My only option is, have the radio button "show" the black button if selected as YES. That just requires the user to make one selection to view it and their selection to read it is recorded. 

    Regards,
    Robert

  • David JotForm Support
    Replied on April 24, 2019 at 1:44 PM

    I am looking for a way to do this without the extra step but I can't come up with a way to do so in the form.  I believe if you want to use the modal to view the data, it would require and extra selection in order to capture the confirmation.

  • AgilityAssoc.Canada
    Replied on April 24, 2019 at 2:03 PM

    Hi David,

    Actually it is not data, it is requirements to hold an event. Most applicants, if not all, have held many events in the past so, they are well aware of these requirements (conditions). It's there if they need to refresh them selves on some part of it, so not mandatory.

    Robert

  • David JotForm Support
    Replied on April 24, 2019 at 3:17 PM

    In terms of data I was referring to the need to be able to capture whether or not they have read the contents of the modal.  If there is no need to capture whether or not they have read the contents of the modal, then I am not certain why there would be a need to have anything other than the button to show the modal if they need to view the information. 

  • AgilityAssoc.Canada
    Replied on April 25, 2019 at 9:04 AM

    Hi,

    Sorry about the confusion. We just like to keep track in case an issue over an event should crop up so, there is a record indicating weather or not the applicant had even looked at the Conditions document. Now having said that, the issue has never come up and may never. It is just a bit of insurance is all.

    Now then, it appears the only option is to have the radio button, when "Yes" is selected, show a "Click here" button to open the modal.

    Thank you for looking into options for us David.

    Best,
    Robert