Hi guys, did anyone know how to solve this? i want to create hyperlink in a sublist (editor type) but it showed up in text instead of link.
w
Wim Suenens
06/02/2022, 2:23 PM
I guess, you should use ‘inlinehtml’ as your field type, and work with <a>-tags.
a
Andrian Davinta
06/03/2022, 6:15 AM
fyi we cant create inlinehtml for sublist field.i tried to change the display type of my sublist field. its not working
w
Wim Suenens
06/03/2022, 6:21 AM
Within a static list (serverWidget.SublistType.STATICLIST), you can.
a
Andrian Davinta
06/03/2022, 6:22 AM
yep, but in my case i need this SublistType.EDITOR so users can do some adjustment within it
w
Wim Suenens
06/03/2022, 6:54 AM
You still have 2 options in that case: I see you’re referring to invoices, so instead of showing the url, you can choose the type of ‘serverWidget.FieldType.SELECT’ and set its ‘source’ property to ‘invoice’. Then on hover, there will be shown that small icon to open the invoice. Another option would be to implement a simple checkbox, listen to change events through a client side script attached and open the link through that event.
a
Andrian Davinta
06/03/2022, 7:17 AM
ok it works for the second one 😄. thanks for your help, appreciate it