Adding an hyperlink or a button in a form

rss

Posted by ninkasi - May 21 ’13 at 07:49

Hello,

I was wondering if there's a way to add an hyperlink or a button that redirect to an url in a form ?

Does anyone got any ideas ?

 

Thanx

  • chrisdmontgomery
    Member
    Member for: 9 years 11 months 23 days
    #11 by chrisdmontgomery Jun 19 ’13 at 10:41

    [#1]: What would the syntax be for adding a button to the form?

     

  • Dmitry
    Dmitry
    Admin
    Member for: 10 years 11 months 19 days
    #12 by Dmitry Jun 19 ’13 at 10:57

    [#11]: If you are using Forms Designer 2.x, please, follow instructions from posts [#1], [#3], [#5]

  • Dmitry
    Dmitry
    Admin
    Member for: 10 years 11 months 19 days
    #13 by Dmitry Aug 1 ’13 at 07:47

    We added link and button controls to Forms Designer v. 2.7.3. Now you can put links and buttons by dragging them anywhere in the form.

  • GregFitz
    Member
    Member for: 8 years 22 days
    #14 by GregFitz May 15 ’15 at 12:50

    [#10]:

    Hi was wondering if I can add a variable (i.e. field value) on the end of the href. or add in a filed value directly.

     

    Example

     

    var v = fd.field('PhoneNumber').control().value();

    $('.dialer').prepend('<a href="https://PhoneSystem/webdialer/Webdialer?destination=' + <var v> ">Dial</a>');

     

    or

    $('.dialer').prepend('<a href="https://PhoneSystem/webdialer/Webdialer?destination= + fd.field('Phonenumber').control().value(); ">Dial</a>');

     

     

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 days
    #15 by Dmitry Kozlov May 18 ’15 at 03:54

    [#14]: Hi Greg,

    Your second option looks well, you only need to adjust its syntax:

    $('.dialer').prepend('<a href="https://PhoneSystem/webdialer/Webdialer?destination=' +
        fd.field('Phonenumber').value() + '">Dial</a>');
    
  • GregFitz
    Member
    Member for: 8 years 22 days
    #16 by GregFitz May 18 ’15 at 08:16

    [#15]:

     

    Hi Dmitry thanks this looks great. I now get 'undefined' as a value even though there is a numeric valueinthe field. Looks liek it is not picking up a value.

     

    All the best,
    Greg

     

     

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 9 years 8 months 7 days
    #17 by Dmitry Kozlov May 18 ’15 at 08:20

    [#16]: Ensure that you use correct internal name of the field in your code.

  • GregFitz
    Member
    Member for: 8 years 22 days
    #18 by GregFitz May 18 ’15 at 10:35

    [#17]:

     

    Browser isue cleared now working liek a charm smile

     

    thanks again, all the best,
    Greg

     

     

  • Murray
    Member
    Member for: 9 years 3 months 10 days
    #19 by Murray May 18 ’15 at 11:34

    [#18]: There was a typo in internal name. The control had to be changed slightly as well. This works

    $('.dphone').prepend('<a href="https://10.7.16.10/webdialer/Webdialer?destination=' +
    fd.field('Direct_x0020_Phone').control()._el().text() + '">Call</a>');

    How do you change the location of the hyperlink in reference to the field itself. {Call} appears above the field and I would like to see it to the right of the field.  Thanks Murray

  • GregFitz
    Member
    Member for: 8 years 22 days
    #20 by GregFitz May 18 ’15 at 09:15

    [#19]:

    Alternatively can this functionality be added to a 'Button' On-Click function?  USing the 'Button' drag and drop from left hand menu?

     

    Thanks,
    Greg

     

     

     

     

Displaying 11 to 20 of 20 messages