adding field "company" and save it

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

barbe
Posts: 9
Joined: Mon Sep 21, 2009 5:26 pm

adding field "company" and save it

Post by barbe »

Hi folks,
I am using v5.5.1 and have a question concerning the fields. I would like to add a field "company". I the form I have added the field and named it COMPANY. Can I save this value with "3. profile modification" in the database? How?
-Sebastian
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

You can create new database fileds here: Settings -> Edit profile fields -> new field
OpenEMM Maintainer
barbe
Posts: 9
Joined: Mon Sep 21, 2009 5:26 pm

Post by barbe »

Hi Ma,
I have already created the field. But how is it possible to save the data entered into the subscription form?
-Sebastian
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

For instance field company (from www.openemm.org):

Code: Select all

<form name="subform" method="post" action="http://www.openemm.org:8080/form.do"> 
<input type="hidden" name="agnCI" value="1" /> 
<input type="hidden" name="agnFN" value="subscribe" /> 
<input type="hidden" name="agnSUBSCRIBE" value="1" /> 
<input type="hidden" name="agnMAILINGLIST" value="1" />

<input type="text" class="inputtype" name="company" maxlength="80" />

</form>
OpenEMM Maintainer
barbe
Posts: 9
Joined: Mon Sep 21, 2009 5:26 pm

Post by barbe »

Hi Ma,
thanks, but what do I have to specify in the action? Profile modification

firma = ???

-Sebastian
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

You should simply read the manual to learn how to set up OpenEMM forms and actions.
OpenEMM Maintainer
barbe
Posts: 9
Joined: Mon Sep 21, 2009 5:26 pm

Post by barbe »

Thanks for your advise. I read it more than once but cannot find the solution how to save the custom field in the database, sorry.

Do I have to define a "script-action"?

-Sebastian
Post Reply