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

Undefined value after JFB update #2

Open
lukasmejia opened this issue Dec 22, 2023 · 1 comment
Open

Undefined value after JFB update #2

lukasmejia opened this issue Dec 22, 2023 · 1 comment

Comments

@lukasmejia
Copy link

Hi @girafffee suddenly the plugin stopped saving the option label from a select field that generate dymacily the options from a jetengine query

Screenshot 2023-12-21 at 22 50 13 Screenshot 2023-12-21 at 22 52 30

and this is the log from console:
Screenshot 2023-12-21 at 22 56 12
Screenshot 2023-12-21 at 22 56 45

@girafffee
Copy link
Collaborator

Hi @lukasmejia

I think you can solve the issue if you change '%lista_sucursales(optionLabel)%' to "%lista_sucursales(optionLabel)%".

This is because the formula in Calculated Field is perceived as JavaScript code, and in your case, an apostrophe symbol is possibly passed that breaks the string value.
For example, such a line will cause an error: 'some label wi'th apostrophe', and this one will not "some label wi'th apostrophe"

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

No branches or pull requests

2 participants