Announcement

Collapse
No announcement yet.

How to know the name of a buttom

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to know the name of a buttom

    Hi guys, i have a form with a buttom named "print_doc", i need hide this buttom with a macro.
    i have tried much ways but it does not works.

    My question is if SC can show properties of this button for be used with macros, in this case i need to know the name or code.
    sc_btn_display('print_doc', 'off');

    The idea is not use Inspect element from browsers.


  • #2
    If I understand correctly what you ask, when you create a button you can give a name. Once created, to know the name just open the tree "buttons" on sidebar, en the caption you see there, is the name of the button, and label is inside the button config.
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      I understand you GIU. My problem was i created a button and the button's name had spaces in blank. Then is not easy know if i replce spaces with "_" or "-", etc.
      I think is good idea in properties know the current name of button. for be used with PHP and Javascript.

      Comment


      • #4
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          Looks like when you put a name with spaces, from JS side, is called with a general name with a sequence
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            Yes, The name changes for javascript with other name and sequence. Anyway for new users of SC is dificult know it name.
            Thanks you Giu for your reply. !!!

            Comment


            • #7
              But its easy. Just on creation put a proper name and later change label, its the way I do.

              Anyway could be interesting to have a way to change the name once created
              /Giuseppe

              Professional Scriptcase Services
              Some Customers opinions

              Comment

              Working...
              X