Problem with Dynamic Options/Options Sets

Hi,

I am having a challenge where I am creating a wizard to create a quote, and getting the options to work in the way i want to, what i want do is:

  1. Select Overall Service (Option Set)

These are then displayed to the user through an RG Group -

I then have a custom state, and then depending on the custom state value, i show a further RG group, with options relevant to the overall service selected. (basically a sub-category)

E.g if a user selects FEA Analysis, the user an RG group with the relevant options:

The problem is, because i have 5 separate overall services, i have created a seperate repeating group for each of those 5 services with corresponding options, i then have custom states for each of those RG groups, and use them to trigger when they should be displayed or not.

The challenge with this approach, if that at the end when they reach the end of the workflow, i am storing the value of the custom state in the database. For the first group, which just shows 5 services, this is fine, as there is only one custom state. But i am struggling to be able to save the correct sub-category, because each of those has their own custom state.

See below some images to hopefully show what i mean:

  1. Overall Services - 1 option set - 1 RG Group - 1 Custom state -

  2. Sub categories 5 option sets-5 RG Group - 5 Custom States. When i go to create this in the database, i can only reference the custom state of the overall services in step 1 -

What i wan’t to do is save the specific service they actually want but because i have the states set at each repeating group, i am not sure how i am going to get the state value, because i won’t know which one has been selected:

Not sure if this makes sense, but hoping someone can help. I guess the challenge summarised is that i have Categories, based on that category, it then displays other categories, but i dont know how i can do this without creating different option sets and then lots of different custom states.

Any help would be appreciated.

I’m not sure if I understood correctly.
Do you have 2 option sets in total? One for overall services and another for the subcategories?
Because if that’s the case, you can link each service to its subcategories, and you wouldn’t need so many RGs.

To present this to the user, you can use a repeating group of subcategories inside a repeating group of services.
Also, when saving the items, you can create a field for the service and another for the related subcategories.

I don’t know if it make sense for you.

Hi, from my own perspective, you only need 1 RG, then in your option set, u’ll create anther attribute which will serve as the respective sub-categories u have…
From here you can from the RG displaying those categories, reference any sub-category selected by the current user.
This should work fine I think.

Thankyou both for your responses.

I was unaware I could set an attribute in option sets for category, this is what I did to massively simplify everything and now it works as I would expect. Thanks both for your help! Appreciate it was a long winded question.