When we multi-select adsets and change the campaigns using the dropdown then the adsets are being selected by default in the new campaigns also because of the condition of picking the current cell’s value. The below-mentioned video link can help you with the issue.
@sriram Is the issue that your selection is tied to current cell index rather than current cell thing in repeating group? If yes, is your selected icon based on a field on the thing which the user can modify by clicking the +/- icons
Yes the issue is basically with the button connected with the index of the cell rather than the current cell’s thing.
The (+/-) icons on the repeating group will it an APi and create a row in the database on the basis of the current cell thing. So to answer your question, the current cell’s thing is not based on the thing. Its functionality is to create new rows rather than modifying existing.
Hope this will help. Let me know if you need more information here.
Point being that the thing selected and the action you take need not LITERALLY be connected. All you have to do is know what thing is represented by what is selected (you can know both things of course).
When i select the + button changes to - button as per the workflow, which is how it should work. The problem here is that when we change the dropdown that populates this RG, the minus button doesn’t shift back to + because it is connected to the current cell’s index rather than the current cell’s thing.
I would need a solution where the plus and minus button shift if there is a change in the dropdown but when you bring the dropdown back to its original state it should be selected and not deselected.
This might look complex in my explanation, the video here can help better. Let me know if I can help you guys better to help me solve the issue.
@sriram the solution in @keith video should work. Is the issue with that approach that you want to retain selection if you move away and then return to the same ‘page’ within RG? In that case, do you have a unique identifier in one of the API dataset fields? You can then have a custom state on the RG which is a list of those unique identifiers and then add a conditional on the select (+/-) buttons.