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

Can't find smash integrated form builder #292

Open
AndrewM- opened this issue Feb 12, 2025 · 8 comments
Open

Can't find smash integrated form builder #292

AndrewM- opened this issue Feb 12, 2025 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@AndrewM-
Copy link

I can't find the integrated form builder in either the app or the reference manual. I am sure that it is easy to open, but at the moment, I don't know where to look.

@moovida
Copy link
Member

moovida commented Feb 12, 2025

Hi @AndrewM- , actually it is not your fault. The docs are lagging behind a lot due to missing resources and the formbuilder is kind of hidden by default.
Have a look at this minute of video to get it out: https://youtu.be/lRXou2QnE3s?t=887

@AndrewM-
Copy link
Author

Hi @moovida, I have activated the form builder in my app (not the server) and cannot load form definitions in it. I have also created a new form and not been able to add controls to it. I think that the first issue is the largest. The app can see the tags.JSON files but fails to load them. I get the nothing loaded banner when I try to load a tags.JSON. iPhone XR, smash 1.9.1

@moovida
Copy link
Member

moovida commented Feb 13, 2025

Hi @AndrewM- , that is odd. I will look into that. Basically nothing works for you right now. I will get back to you.

@moovida moovida self-assigned this Feb 13, 2025
@moovida moovida added the bug Something isn't working label Feb 13, 2025
@moovida
Copy link
Member

moovida commented Feb 13, 2025

Hi @AndrewM- , I looked into it and it seems that to be loaded, the file needs to end with _tags.json, so just tags.json will not be loaded. I added some check for that and some meaningful message. Also, I added some error message for the case a form gives an error upon loading.

Would you be able to test an apk, if I upload it here?

@AndrewM-
Copy link
Author

@moovida I am afraid I am using an iPhone so cannot test apk files. I will however rename a tags.json to *_tags.json so see if the form builder will load it. Renamed the file and the integrated form builder works. There are a couple of gothchas. If the form design is altered, there is no save or discard changes dialog if the user forgets to save their work and hits the back button. Also on an iPhone, there is no visual clue that there are more items available in the dialog. Finally, I guessed where the edit command it, but this will not be obvious to those that do no use Flutter.
Image

@moovida
Copy link
Member

moovida commented Feb 14, 2025

@moovida I am afraid I am using an iPhone so cannot test apk files.

Ok, that version also is lagging behind :-( Will get there eventually

I will however rename a tags.json to *_tags.json so see if the form builder will load it. Renamed the file and the integrated form builder works. There are a couple of gothchas. If the form design is altered, there is no save or discard changes dialog if the user forgets to save their work and hits the back button.

Actually, it should keep it in memory. When you reenter the builder it should automatically present the last one edited at the last state of editing.

Also on an iPhone, there is no visual clue that there are more items available in the dialog. Finally,

Ok, I agree. But then again, the formbuilder used on a smartphone instead of a tablet is a bit of a stretch...

I guessed where the edit command it, but this will not be obvious to those that do no use Flutter.

But the tooltips do work, right?

@AndrewM-
Copy link
Author

@moovida I can't find the tooltips for either the list of forms (data already collected) or for the integrated form builder.

Also, I cannot add any controls to a new form with the inbuilt form builder. I have attached a screenshot of what I see when I create a new form. I suspect that something is not visible.

Image

@AndrewM- AndrewM- changed the title Can find smash integrated form builder Can't find smash integrated form builder Feb 26, 2025
@AndrewM-
Copy link
Author

Actually, it would be great to know which tags file that a Smash project had imported. This is an issue, when forms are versioned.

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

2 participants