In reply to: Maksymilian Stachowiak
Hi Joanna,
Why are you using HTML with <script> tags? Isn't On Value Change* enough? What is the use case?
*https://docs.webcon.com/docs/2023R3/Studio/UxRules_General/#id_2
Hi,
No.. To be fair, I did ask in a hurry, and after couple of hours I came back and re-read my question and seen that is not even half complete of what I needed, and I wanted to delete the post and re-ask. :D
Basically what I need is that when a checkbox is FALSE, make the user attach at least one document of a specified type. When the checkbox is TRUE give the user the permission to attach NO document but instead make them to write one comment. So only when that checkbox is TRUE, comment is mandatory, otherwise, comment is optional. Seems like I managed to do the first part, no problems. But when I had to do the "mandatory one comment".. I had problems. Because the user has only one button (path) at the bottom of the form, and I can't activate the "comment required" option, as it's not needed if the checkbox is not ticked...
I did find this post
https://daniels-notes.de/posts/2023/simplification-of-missing-comment
and so many others, that's why I got mixed up between On value change, Javascript rules, where are the place where we can put that InvokeRule action, different types of fields and so on. And at the end I don't even know if this is possible to achive or not :(
Maybe now it's a little bit more clearer.