Remove token from form title

 4 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Robert Spurr
Veteran Member
Posts: 130
Veteran Member
    Is there a way to remove the form token from the form title?  I've created some custom forms that are opened through links but I don't want the end-user knowing/seeing the token.  I could wrap in a portal page but I can't figure out how to pass variables need in the embedded form.


    Thanks
    Robert
    Robert Spurr
    Veteran Member
    Posts: 130
    Veteran Member
      Well I really need to have patience because once again I figured it out after I posted. For any one else who would be interested.

      function FORM_OnAfterFrameworkInit()
      {
      portalObj.setTitle("Enter Title Here");
      }
      Ragu Raghavan
      Veteran Member
      Posts: 476
      Veteran Member
        Thanks Robert. That will come in handy for a screen I am bulding.
        Ragu Raghavan
        Veteran Member
        Posts: 476
        Veteran Member
          I could have sworn I had this working in Design Studio 9.x. Has the syntax changed on 10.x? It does not seem to work any more? Thanks.
          Ragu Raghavan
          Veteran Member
          Posts: 476
          Veteran Member
            Found this by doing F12 and searching for title. Seems to work for me. Just leave the tkn parameter blank

            * Use this instead of portalObj.setTitle, handles passing the tab name. Easy replacement for old setTitle usage.
            * @param {string} title - title text
            * @param {string} [tkn] - token text
            * @param {string} [pdl] - product line text
            */
            function lawformSetTitle(title, tkn, pdl) {