Adding an hyperlink or a button in a form
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
-
chrisdmontgomeryMemberMember for: 9 years 11 months 23 days
[#1]: What would the syntax be for adding a button to the form?
-
DmitryAdminMember for: 10 years 11 months 19 days
-
DmitryAdminMember for: 10 years 11 months 19 days
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.
-
GregFitzMemberMember for: 8 years 22 days
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 KozlovAdminMember for: 9 years 8 months 7 days
[#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>');
-
GregFitzMemberMember for: 8 years 22 days
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 KozlovAdminMember for: 9 years 8 months 7 days
[#16]: Ensure that you use correct internal name of the field in your code.
-
GregFitzMemberMember for: 8 years 22 days
-
MurrayMemberMember for: 9 years 3 months 10 days
[#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
-
GregFitzMemberMember for: 8 years 22 days
Alternatively can this functionality be added to a 'Button' On-Click function? USing the 'Button' drag and drop from left hand menu?
Thanks,
Greg