Page 1 of 1

${ask} multiple questions in one dialog box

Posted: Wed Oct 28, 2020 7:45 pm
by pieterjan_vdw
With an action I want to add a section to a topic and with the ${ask} variable I would like the writer to complete the values of a couple of elements.
I have three ${ask} questions in my section I would like to add.
Currently I get three pop-up dialog boxes and I was wondering if it would be possible to get these three questions in one dialog box?

This could be an idea but don't know if that's possible:
  • I bundle all questions in one element I don't use for output.
  • I get one dialog box with the three questions.
  • I use ${answer(@id)} to get the asked info in it the correct place in my topic.
Any other ideas how to get this done?

Re: ${ask} multiple questions in one dialog box

Posted: Thu Oct 29, 2020 12:01 pm
by sorin_carbunaru
Hello,

Collecting all questions into one dialog using ${ask} is not possible. At least not yet. We do have an feature request recorded for this (EXM-39892 - for reference purposes), and I added your vote.

I don't really understand your proposed solution. My advice would be to add your custom editor variable to Oxygen using ro.sync.exml.workspace.api.util.EditorVariablesResolver. You can see an example of using this API in our Git Client add-on: https://github.com/oxygenxml/oxygen-git ... olver.java.

Best wishes,
Sorin Carbunaru
Oxygen XML Editor