can I create a visual layout that looks like the UI shown in the image within an InDesign document using ExtendScript? It seems that I can’t find any API to create a HTML-like element.
Maybe try radioButtons. I don’t know whether and if so, how, they appear when you export them to HTML though.
You’re correct that there’s no HTML support in InDesign using ExtendScript.
If you’re trying to make an element inside of an InDesign document, you’ll have to use text frames, rectangles, and circles to build the element. Here’s a YouTube video showing what that would look like if you did it manually without scripts: https://www.youtube.com/watch?v=vyOqn_Ze95I
If you’re trying to make this radio group within a dialog, you can use ScriptUI’s
radiobutton. You can see an example in this PDF if you scroll down: https://www.daube.ch/docu/fm-documentation/ExtendScript/ScriptUI_for_Dummies-[PeterKahrel].pdf