Adding an hyperlink or a button in a form
-
- Posts: 3
- Joined: Wed May 01, 2013
What would the syntax be for adding a button to the form?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
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>');
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Greg,
Your second option looks well, you only need to adjust its syntax:
Your second option looks well, you only need to adjust its syntax:
Code: Select all
$('.dialer').prepend('<a href="https://PhoneSystem/webdialer/Webdialer?destination=' +
fd.field('Phonenumber').value() + '">Dial</a>');
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Ensure that you use correct internal name of the field in your code.
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
$('.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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests