Conditional enable/disable of subform rows

Conditional enable/disable of subform rows

My app contains 2 forms:

MainForm = Contains some data in various fields
Subform = contains comments in the form of multiple rows

My users can add new comments by adding rows. All this is working fine. What is needed is:

1. Disable all rows "comment field" when the MainForm is edited e.g. "disable comment;"
2. On Add Row, enable the field e.g. "enable row.comment;"

I can successful achieve #1 by adding "disable comment;" in the Edit -> On Load. However, when I add "enable row.comment;" on the "On Add Row" I am getting the following error:

Error at line 5 : This task is not allowed inside subform's workflow

Anyone have an idea on how to achieve this or what this error means? Ultimately, I also wish to control delete making all the comments permanent with no edit or delete rights.

Thx




                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now