Home › Forums › Quform PHP › display text of Select instead of values › Reply To: display text of Select instead of values
April 27, 2026 at 12:03 pm #38077
Participant
Hi,
The reason I did not put the text directly in the value attribute is that there is already an existing activity_master in mysql db from where details are pulled therefore I have to go with id-name setup.
As you said, I already added following code in process file but it did not work:
$activityname = new Quform_Element('activityname', 'Activity Name');
$activityname->addFilter('trim');
$form->addElement($activityname);
If above can work it is fine with me. Otherwise the only workout I can think of is adding an element or replacing value of an element somehow.
Thanks.
