mark.stout
(Mark Stout)
October 25, 2024, 8:03pm
1
Hello,
I’m trying to update a LINK column using PHP. I have successfully updated the email column and the two appear to be essentially the same.
Here’s what I am using for the EMAIL column:
'email__1' => ['email' => $contactEmail, 'text' => $contactEmail]
I would expect the same would be true for ther LINK column. However, the syntax below throws an error. Any ideas why?
'link9__1' => ['link' => $contactWebSite, 'text' => $contactWebSite]
Does anyone have a working example?
mark.stout
(Mark Stout)
October 26, 2024, 1:25am
2
Found the issue. I was using the column type ‘link ’.
'link9__1' => ['link' => $contactWebSite, 'text' => $contactWebSite ]
When I should have been using the column. type ‘url ’
'link9__1' => ['url' => $contactWebSite, 'text' => $contactWebSite ]
zayyk
(zack)
October 28, 2024, 12:50am
3
Mark Stout:
Hello,
I’m trying to update a LINK column using PHP. I have successfully updated the email column and the two appear to be essentially the same.
Here’s what I am using for the EMAIL column:
'email__1' => ['email' => $contactEmail, 'text' => $contactEmail]
I would expect the same would be true for ther LINK column. However, the syntax below throws an error. Any ideas why?
'link9__1' => ['link' => $contactWebSite, 'text' => $contactWebSite]
Does anyone have a working example?
It sounds like the syntax should be similar, but in some systems, link columns might expect slightly different key names. Try updating the LINK column using url
instead of link
:
php
Copy code
'link9__1' => ['url' => $contactWebSite, 'text' => $contactWebSite]
If that doesn’t work, consult your API documentation to confirm the exact key expected for link updates. Sometimes these fields are case-sensitive or require specific formats.