Widget that has no data is added to the PDF

  • Profile Image
    samyak.innovations
    Asked on August 23, 2020 at 12:37 PM

    Hello team,

    I have used a widget "Sliders with calculated result" in the app. There's a need where I have 30 questions, now since there are so many questions for it (i tried using all that by single widget but there was some design issue with widget height) hence we have complied and used that widget 4 times.

    Now there are some internal calculations that we do with each block and have a final calculation.

    The problem is while generating pdf. Even, when there's no data filled in any of these blocks the final data, is calculated by taking all the other block output as 0 and that prints the data in the pdf

    Please check.

    I am talking about form "History and assessment sheet". Also, let me know if there's an alternative

  • Profile Image
    JohnRex
    Answered on August 23, 2020 at 03:22 PM

    I assume that you are referring to this widget:

    15982104072531222.png

    Note that by default, empty fields will not be added to the PDF submission. Yes, you will see the field in the PDF Editor but when you preview the actual PDF, those empty fields will be removed:

    15982105612531222 2.png


  • Profile Image
    samyak.innovations
    Answered on August 24, 2020 at 02:28 AM
    Hey there,
    It gets added when you just open that section collapse and don't fill in
    any data. Please check
    ...
  • Profile Image
    Rosa_C
    Answered on August 24, 2020 at 07:50 AM

    Hi there,
    Please note that when the field is empty, it still will get added on the PDF in the PDF editor.
    But once you submit the form, you will not see the empty field in the PDF report.

    Please try to make a test submission and let us know if you have any question.
    Thank you.

  • Profile Image
    Rosa_C
    Answered on August 24, 2020 at 08:21 AM

    Sorry, it seems that I misunderstood you.

    I assume you're saying that the total result 0 is shown even when the user didn't fill the slider.

    Please note, that when the user doesn't fill the slider, the value is 0 for this slider. This is why the total value shows 0.
    Unfortunately, there is no way to hide the total field when the user didn't fill the slider.
    However, tt's possible to completely hide the total field, that means it will not be shown even when the user filled the slider. 
    Please let us know that works for you and we will provide you with a guide to achieve so.
    Thank you.