Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Julien Costes Posted August 28, 2022 Posted August 28, 2022 Hello, I need to make a multiple choice list with url or text. When I put in the text field: <a href="http://test.com/">test</a> I have this result : <a href="http://test.com/">test</a> How can I have a multiple choice list, with links or just text
opentype Posted August 28, 2022 Posted August 28, 2022 What do you mean by “text field”? Where exactly did you put that HTML? You can’t put HTML as an option for a field. It needs to go in the field labelled “Custom topic formatting”.
Julien Costes Posted August 28, 2022 Author Posted August 28, 2022 It's Extra Field in all app. In Panel Admin
Jim M Posted August 28, 2022 Posted August 28, 2022 Why not just choose the URL option for member profile fields? As mentioned by @opentype, the field value itself will not render HTML and will escape it, as seen in your post. Just now, Julien Costes said: It's Extra Field in all app. In Panel Admin You would need to utilize some custom formatting for this based on their selection. You would not be able to insert HTML as a selection value.
Julien Costes Posted August 28, 2022 Author Posted August 28, 2022 Because this : I have hundreds of choices. Some are links, others are not.It's not like in a profile or want to put just one link. I need to choose among this hundred choices.I want a multiple choice list, and that we can put a link if we want. Users must not write HTML code, and it is a waste of time ^^'
opentype Posted August 28, 2022 Posted August 28, 2022 Then you need to separate the link and non-link options. 2 minutes ago, Julien Costes said: Users must not write HTML code, Not only that. It would be a huuuuge security risk if user HTML input in the profile fields would actually be rendered as HTML. Jim M 1
Julien Costes Posted August 28, 2022 Author Posted August 28, 2022 How to make it complicated when it is a simple feature on 10 years old sites that I use.. ^^' This solution is not good for me I cannot have two list separates, if a website becomes dead I delete the link. If I change the list a dead website, it will necessarily be deleted from the sheets where it was before. I cannot waste my time adding it every time wherever it has disappeared It's not possible to add a new Field type ? Where can I make this ?
Jim M Posted August 28, 2022 Posted August 28, 2022 11 minutes ago, Julien Costes said: How to make it complicated when it is a simple feature on 10 years old sites that I use.. ^^' What we perform is best practice to sanitizing data for output. You do not want to allow HTML being rendered in your form fields as this will open you open to several vulnerabilities. We only allow this in specific areas, unfortunately, this is not one of them. To get what you're after, this would require customization or using a custom formatting for output. Both of which, I'm afraid, is outside our scope of support so I will move this to our Community Support forum so you can obtain assistance from other clients.
Recommended Posts