Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multivariable text isn't working in pdfme playground #663

Closed
ghaith-arabkerly opened this issue Dec 27, 2024 · 3 comments · Fixed by #728
Closed

Multivariable text isn't working in pdfme playground #663

ghaith-arabkerly opened this issue Dec 27, 2024 · 3 comments · Fixed by #728
Assignees

Comments

@ghaith-arabkerly
Copy link

Describe the bug

Multivariable text isn't working in pdfme playground , when adding it in the designer and switch to form , it's not there and an error pops in the [console]

Screenshot 2024-12-28 at 12 56 08 AM

To Reproduce

Make a blank template , add multivariable text with any variable , switch to form

Expected behavior

It's expected to work normally as it used to does

Your Environment

- pdfme package(@pdfme/generator or @pdfme/ui):
- pdfme version:
- Operating system:
- Node.js version or Browser name & version:

Your Error Log

Uncaught (in promise) SyntaxError: Unexpected end of JSON input

Additional context

No response

@peteward
Copy link
Collaborator

Hi,

It works fine for me.

Please can you provide more context. What text and variables are using and what input are you entering for the variables?

@jtweeks
Copy link

jtweeks commented Jan 20, 2025

Did you add the plugin? I have another issue myself, any schema section that has variables is blank when generating the PDF. If the multi just has text it shows up. Anybody have an idea what can be happening? My first time using pdfMe, I added the plugin.

@ananthakrishnan15
Copy link

I am experiencing the same issue in both my project and the playground. When the inputs for a multivariable text field are left unset, the error message referenced above is thrown in the console. This leads to a breakage of the form on the front end.

Steps to Reproduce:

  1. Add a multivariable text field to the form.
  2. In the playground, click on "Set Inputs" for the multivariable text field.
  3. Click "Cancel" to dismiss the input settings.
  4. The error message is thrown in the console, causing the form to break on the front end.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants