NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Stu on June 24, 2015, 03:42:55 PM
-
Hi Bruce/Folks,
So I'm trying to put a custom url into a browse field.
But at the moment, no matter what options I select, I can't seem to get the template-code to not wrap it in a CreateHyperlink() call.
Screens attached.
Am I missing something basic?
[attachment deleted by admin]
-
Hi Stu,
Because you are putting the actual "html" in the field, you don't need to set anything on the "on click" tab (and indeed everything there should be off")
currently you have "field contains URL" set on - but that is wrong because the field contains HTML, not a URL. (You would only tick this on if the field was (and only was) a URL.)
If you put HTML in the Display field then you will likely need "allow html" on there as well, and possibly "allow unsafe html" as well.
cheers
Bruce
-
Hi Bruce,
Sorry, wasn't clear .. That doesn't make any difference.
Field contains URL OFF, still has the CreateHyperlink() wrapping. Screens attached.
[attachment deleted by admin]
-
Hi Stu,
have you got a space between the < and the a ?
ie this is legal
<a href="whatever">
this is not;
< a href="whatever">
I've tested here a bit, and if I take the space away then the URL looks right.
cheers
Bruce
-
Hi Bruce,
Is legit html. No bad spaces.
I've gotten around it since posting this, but check the screens. There's something happening there.
Will try and do up an example.
Stu
-
yeah, I think an example will be helpful because when I tried to duplicate from your screens it seems to work ok.
cheers
Bruce