docusealco / docuseal

Open source DocuSign alternative. Create, fill, and sign digital documents ✍️
https://www.docuseal.co
GNU Affero General Public License v3.0
5.55k stars 369 forks source link

[Bug] Conditional inputs disappear once selected #254

Closed estallio closed 2 months ago

estallio commented 2 months ago

Hi,

I could not find documentation for conditions on fields so I played around a bit. I added a checkbox field and set a condition for a text field. When I opened the document, only the checkbox was visible. After checking the checkbox, the text field appeared and I could fill it out. However, when I unchecked the checkbox again, both fields, the checkbox and the text field disappeared and I had to reload the page to start the process again. I thing the expected behavior is the checkbox caused a toggle of the text field, right?

Cheers, Leo

omohokcoj commented 2 months ago

@estallio the bug was caused by the last text field set as conditional field - so unchecking the checkbox removed the current field causing an error. It has been fixed in the latest version.

estallio commented 2 months ago

The issue still persists. I've observed that the issue only occurs when selecting the checkbox in the PDF view. When editing the checkbox in the submission form at the bottom, the form works.