HiEventsDev / Hi.Events

Open-source event management and ticket selling platform 🎟️
https://hi.events
GNU Affero General Public License v3.0
886 stars 75 forks source link

🌟Ability to add links in questions / question options #58

Closed elronalds closed 1 month ago

elronalds commented 2 months ago

It would be nice to be able to add links to either the question or question options. For example, I would like to add a checkbox question such as the following.

Terms and Conditions I agree to the ticketing terms and conditions

I would then like the "terms and conditions" text to link to open the terms and conditions in a new window. This doesn't seem possible in the current setup. Maybe this could be done by adding markdown link support, or autoconverting URLs to links. Autoconverting the links could then have a question like following.

Terms and Conditions I agree to the ticketing terms and conditions at https://www.example.com/terms

Where https://www.example.com/terms would automatically link and open in a new window without requiring any code or markdown support.

daveearley commented 2 months ago

Good suggestion! Rather than using a checkbox, this could be achieved by adding a new "terms" question type with the ability to either add a terms link or a block of HTML.

elronalds commented 2 months ago

I think for simplicity it would be great to have a link in a checkbox question. Just automatically converting the detected URL to a link with target _blank would be a nice feature.

daveearley commented 1 month ago

I've added a description field to questions, so you can add terms or additional information to a question. It accepts HTML so you can add links etc. if required.

Screenshot 2024-07-12 at 14 47 44