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

Field "logic" not working in 1.0.2 #171

Open
spencerflagg opened this issue Mar 21, 2022 · 7 comments
Open

Field "logic" not working in 1.0.2 #171

spencerflagg opened this issue Mar 21, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@spencerflagg
Copy link
Contributor

What's this issue about?

I was able to create suppression logic on fields a week ago, but there seem to be bugs with this new version.

Expected behavior

I should be able to add logic to a field by referencing another field id in the Formula box.

Actual behavior

The @ID syntax does not appear to resolve properly, and the form cannot save.

Steps to reproduce

  1. I create two number fields, and name them test1 and test2.
  2. (the field type and options don't actually seem to matter - the error happens regardless)
  3. I hit "save".
  4. Under test2 I click "add logic", and start typing @test1 = 0 in the Formula text box.
  5. After the @, I get a dropdown and can click on "test1" in the dropdown.
  6. After I click "test1", the field name resolves to a number with an @ in front of it. Like @35 (it seems to be an ID number that increments as the field grows).
  7. After I've finished typing, the Formula text box now reads @35 = 0, and a red error message under the text box shows "Invalid term: @35".
  8. I can try manually changing the text to read @test1 = 0 and the red error message remains but now says "Invalid term: @test1".
  9. In either case, hitting the Save button results iin a popup "Could not update form"

Environment

  • VPS running Debian 10.11
  • Docker 20.10.13
  • Running OhMyForm in a Docker container: setup
@wodka wodka added the bug Something isn't working label Mar 27, 2022
@spencerflagg
Copy link
Contributor Author

spencerflagg commented Apr 4, 2022

still broken in 1.0.3, but instead of ids like @35 I get ids like:
@NEW-1649068163676 when the form hasn't been saved yet, and ids like @Q7OdjP when it has been saved.

@CodinKitchen
Copy link

Same behavior as @spencerflagg here

@pvchip1
Copy link

pvchip1 commented Apr 11, 2022

I have same problem, logic not working! 1.0.3

@FrinkMan
Copy link

Same problem here - I would love to use this software but until this is fixed it's a no-go from me :(

@pvchip1
Copy link

pvchip1 commented Apr 20, 2022

I've been trying run local project with docker, heroku, whatwever, i've had same problem with logic.

1 - I created field "dropdown" following examples logic, saved to get ID.
2 - Select jump to, and save againd. (after save, if i refresh page, field Jump To goes back to blank.

@beljul
Copy link

beljul commented Jul 4, 2022

Same problem here with latest version, do you have any updates?

@wodka
Copy link
Contributor

wodka commented Jul 4, 2022

no update yet - if anyone has time PR's are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants