Set field value with $COOKIE
Set field value with $COOKIE
julesverne
Posts: 5Questions: 2Answers: 0
Is possible to set field value from COOKIE value?
Something like this
$editor->field(
new Field( 'userid' )
->setValue($_COOKIE['name'])
);
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Yes, you should be able to use it exactly as you have it above. The
Field->setValue()
method doesn't really "care" about where the data comes from - as long as it gets data.Allan
Ok, thanks Allan