Hello everyone,
Here is my problem : I’m trying to create a modulating list of capabilities, being able to select one or many of them and store the list of capabilities in an other database, as a string. But it will be clearer with an example.
Here is the list :
When you click on the “+” button, a table appears with an add button and a cancel button :
Until now, I used to proceed like this : when an item is selected in the table, I store its name in a hidden texte field :
table | current index changed | capability_text | set text | table> current text
Then I append a coma to separate values in the list
But to identify if the capability is already in the list, and to delete it if I want to, I have to add a condition : if the list contains the text with the coma, then it is deleted. If it does not, then it is added
But this way seems to be pretty “unstable” : sometimes it works, sometimes not. And I just don’t understand why it doesn’t work all the time. After many trials, it seems that this is the condition that is not stable : any idea why ?
Again, I can send you my file by email but it doesn’t work when I try to upload it here…