How to have a CheckBox Drive Comments

@josecgomez can you please help with the following
If the boxes below are checked, then sales order comment should be populated as:
I want to do it on individual basis, there are 8 checkboxes. I want to append the comments based on checkboxes.


I’m not sure what you are asking. It sounds like this is a different question. I’m spltting the thread.

Yes, it a different question. Continuation to the previous one. I was able to do it but there were many groups of conditions as shown below:

@josecgomez any thoughts on how to do this?
thanks

It seems like this might not work the way you expect it to. You have to think about when the comment text will be generated. Does it generate the comment for each and every checkbox that is checked every time the checkbox is checked? What if there is an accidental check? What if the user unchecks a box? Do you expect the comment to be updated to remove text as well?

The way around this is to add a button at the bottom of the checkboxes and only generate the comment when the user clicks that button. That way the user decides that all the comments that need to be checked are checked, and the text is ready to be generated.

If you go this route, then you would use an OR statement to check the existence of any true checkboxes. Then if any are true, insert a comment for each box that is true. You should be able to do this all in a customization.

@atuljainajm I would treat this as individual additions and removals. Additions are easy since you just check for the existence of the comment and append if not found.

Removals will be more complex as you will have to keep the rest of the comment only removing the one unchecked. Not undoable just more attention to detail than an append.