Placing a html anchor around the name of a custom profile field

Started by pepa, April 02, 2018, 08:20:03 AM

Previous topic - Next topic

pepa

I can do this easily in the description text for the field but can't get it to work for the field name. Current code with an anchor in the description is:

if ($field['name'] == 'Support the Spill')
$field['desc'] = '<strong style = "color: #0B9D08"><a name="Spill">There</a> will be a motion to Spill some board members at the 2018 AGM.  Please indicate your support by entering:</strong><strong style = "color: #000000"> YES, NO, UNDECIDED.</strong>
<strong style = "color: #0B9D08">For more info read the</strong> <a href="https://www.reformaps.org/docs/Spill_2018/RAPS_2018_Spill.pdf" target="_blank"><strong style = "color: #00aedb; text-decoration: underline">STATEMENT of SPILL</strong></a> <strong style = "color: #0B9D08">document.</strong>';


But I want the anchor to be the field name Support the Spill or immediately above the field name.

pepa

OK, I have sorted that problem out ... syntax errors etc ... the usual <sigh>.

Advertisement: