I have a repeating group displaying all the information regarding one storage place of a company (Location, certifications, Cut off time, and many other inputs). All this information sits in a group (Group Warehouse) inside the RG row and has a custom state (yes/no). I created a button (Button Edit) inside the “Group Warehouse” to allow the user to edit the information in it.
This works in the workflow as “when button edit is clicked” – “set state of Group warehouse to yes”. Then there is a conditional in every input field, that if the custom state is yes, then the input fields are enabled.
The funny (not so funny anymore) thing is that I have the exact same workflow in another group in the same app but this one inside the RG is not working. I tried bringing the button to the front, deleting, and recreating the workflow from scratch, but I can’t figure out why my button is not working. PS: my button is clickable
Hi @adamhholmes
thanks for the quick reply, and the great question, it is actually clickable, so the mouse pointer changes when hovering, but the workflow is not running properly
In that case the first thing I’d do is use the debugger to see what’s going on…
(although, as @mikeloc alludes to, I suspect it’s to do with having more than one workflow on the same button click, and not having the right conditions set on those)…
But the debugger will tell you what the issue is (if you know how to use it)…
I also suspect it has something to do with the workflows but not entirely on having different workflows for the same button. I learned those conditionals in a bubble course I did a while back. I attach a screenshot of the app I did in the course… the assignment was similar:
Post comments and display them in an RG, also have the ability to edit the comment if you were the comment creator, or display a message (message: “you cannot edit this”) if the user was not the creator. The only difference is that in the assignment I did it with an icon and not a button
I wrote this post like 20 min ago and forgot to submit it. I will read now your proposal carefully @ihsanzainal84
Yeah, those two workflows make sense (kind of), as they have the opposite conditions, so only one of them will run when the button is clicked…
The workflows in your app, however, (the ones in your screenshot in this post) don’t make much sense, as only one of them has conditions, meaning that in some cases they will both run, which is almost certainly the cause of your problem (but again, the debugger will show that more clearly).
For what it’s worth, @dafne.sinopoli, you can do what you are trying to do, and you don’t need a plugin to do it. I made a quick example that mimics what you described, and these workflows work as expected.
The only difference I can see between my example and your setup is that I set the default value of the custom state to no, and the default value on your custom state is empty. That being said, I did a test where I cleared out my custom state’s default value and I removed the Only when condition from the first workflow, and it still seems to work.
So, long story short, you should definitely check out the debugger like Adam said, and if you are willing to share a read-only link to your editor so we can take a look under the hood, I’m guessing we can figure out what’s going on.
Hi @mikeloc thank you for taking the time and recreating the workflow. I will give it a try again with the two conditionals (one for CS = no, and CS = yes). My question would be, in your example did you recreate it in a repeating group or just a group?
I gave it a try, and set the conditionals in the workflow as suggested, but still somehow is not working. I believe is something with a condition not being met.
Here is the link for the editor, maybe a fresh pair of eyes can see what’s going on
I think I found a potential solution or workaround to the problem, because as you mention it might be a bug, but I cannot trust bubble to not do it again (it has happened to me already a couple of times that I do something by the book, and it doesn’t work)
I created a testing page to check if it works and although it does not look pretty it does the job, and I will have to solve the “prettiness” at some other time.
What I did was take the “Edit” button out of the input group, but still inside the RG row, and keep the workflow as it was (with the two conditions as suggested). This way when I click the button, the inline editor is available for the user to modify the information and save it when finished. I also plan to add a delete button with the same logic and hope for the best
Thank you both for the help, if you think of something else that might work, let me know. I will anyways submit a bug report to bubble