I’m using custom states to add data to my database - specifically the profile data type. Per the image below, when the user selects the specialties, they turn green. When the user clicks the “Continue” button, the selected specialties are added to the database. This all functions correctly.
My issue is that I would like the user to be able to remove specialties. For example, if they clicked “Continue” and then later realized they made a mistake and clicked the “Back” link, the user would click one of the green specialties, and it would turn white. **However, if the user clicks the “Continue” button again, I would like the selected specialty to be deleted from the database. Right now it’s not deleted and I’m not sure how to do that.
i think an easier wey to desing this is those specialties are a list you create in an option set. and they have yes/no
when i user clicks the group, it just adds and removes that option set to a “list of specialties” on the user. then it doesnt have to be saved, its just changing when they make hte click, and it will be green if it is in thier “specialty list”
Thank you - yes that’s very helpful and very appreciated. I guess my issue with using a repeating group in this way is the formatting / design. I prefer how I have the “buttons” set up now. Is it possible to take the method you used and apply it to my set up? Trying to figure out the quickest way to get it done.
Okay I already did a bunch of work creating the elements as text fields in the dietitian-onboarding page. Is there no way to work with what I already have? Apologies if I’m misunderstanding and/or being dense.
just like i showed you on the test page you can do the same thing, it wont take that much to change it. ill copy past it on that page and you can delete it if you want. you need to learn option sets. having a list of text and adding those texts to the list on the user is going to be very restrictive for you in the future
its too much work to change your step 5 design for me to do. but ive created it for you. all you have to do it rename the data type field and add more option sets and change thier names and your good to go. it wont take that much time.
ill end up makeing a change that gets you stuck and you dont know how i got you there and youll be frustrated
i tried to back track the few changes i made, because i was realizing it was a bad idea
looks like your specialties (group 5) is missing, did you delete it? if not just keep backtracking untill it comes back, it should come back.
we should have made a save point before i started working on your page
what im saying is a bad idea is me making all the changes on your actual page. you need to look at the example i created for you on the test page and implement it into your app, if you want. which i recomend you do