Get value from link-column on display-form
Posted: 25 Sep 2017
Hello,
I want to show or hide a picture with a column value (URL) on a display form.
The column is a hyperlink / image. If a URL is included, the image should be displayed. If no URL is included, the image should be hidden.
On the edit form it works, but not on the display form.
My Code:
var url = fd.field('Link-Column').value();
if (url == '')
{
$('.picture').hide();
}
so it does not go:
var url = fd.field('Link-Column').value()[0];
if (url == '')
{
$('.picture').hide();
}
What am I doing wrong?
Many Thanks!
I want to show or hide a picture with a column value (URL) on a display form.
The column is a hyperlink / image. If a URL is included, the image should be displayed. If no URL is included, the image should be hidden.
On the edit form it works, but not on the display form.
My Code:
var url = fd.field('Link-Column').value();
if (url == '')
{
$('.picture').hide();
}
so it does not go:
var url = fd.field('Link-Column').value()[0];
if (url == '')
{
$('.picture').hide();
}
What am I doing wrong?
Many Thanks!