Question T2734
Visible to All Users

Call Function when edit element

created 5 years ago

Hello,

I want to remove some class as design issues. So I want to call a function when click on edit icon.

How can i do that?

Answers approved by surveyjs Support

created 5 years ago

Hello,

You can use the following rule to override current behaviour:

CSS
table.svd_items_table .form-group { display: table-cell !important; }

Here is the working sample - https://plnkr.co/edit/A59qSsj7YbzSxJ7ebztn?p=preview
Does it fit your needs?

Thanks, Serge
SurveyJS team

    Show previous comments (1)

      Hello,

      Unfortunately at this moment there is no event to remove "form-group" class from the markup. But I believe that is it possible to override desired behavior via CSS styles like in this sample - https://plnkr.co/edit/A59qSsj7YbzSxJ7ebztn?p=preview

      You can also use non-bootstrap theme (e.g. "default" like in this sample - https://surveyjs.io/Examples/Survey-Creator?id=options&theme=default) so BS classes like "form-group" will not affect the behavior. Can you use this solution?

      Thanks, Serge
      SurveyJS Team

        If you can provide a minimal live sample illustrating your issue we could try to override the CSS styles.

        Thanks, Serge
        SurveyJS Team

          After some efforts working below code given by you.

          CSS
          table.svd_items_table .form-group { display: table-cell !important; }

          Thanks Buddy

          created 5 years ago

          Hello,
          Do you mean, you want to call a function before showing Element (Question/Panel/Page/Survey) Editor?
          What do you want to do?

          Thank you,
          Andrew
          SurveyJS Team

            Other Answers

            created 5 years ago

            Yes, I want to do that on popup open. because it dynamically added to that class in list of item. I have applied css but it not override dynamically inserted class so I just want to remove that class when open popup.

            Thanks

              Comments (3)

                Hello,

                Could you specify - what exactly class/style do you want to override?

                Thanks, Serge
                SurveyJS Team

                  want to remove "form-group" class

                    please find the attachment

                    created 5 years ago

                    Hello,

                    I have UI issue. attached screen shot.

                    So I Just want to remove some class from its css.

                    So when popup open when click on edit then want to call function.

                    May be you better know when to call function.

                    Element for which i want to remove css are in popup. so please advice.

                    Screenshot_5.png

                      Comments (1)

                        You have to fix your css classes on your html page. It should look fine.

                        Thank you,
                        Andrew
                        SurveyJS Team