Topic on Extension talk:ContactPage

How can I add an Additional Field

3
39.53.154.161 (talkcontribs)

Hi I have just installed the ContactPage extension. I have tried to add additional fields by multiplying the below code.


'AdditionalFields' => array(

'Text' => array(

'label-message' => 'emailmessage',

'type' => 'textarea',

'rows' => 20,

'required' => true,  // Either "true" or "false" as required

),

),


However, no matter what I do I cannot achieve what I want. Can anyone provide me the example of adding a field?


Thank you in advance.

Ammarpad (talkcontribs)

You should not duplicate that completely,as it could override the default you just need to append to the array. Please post the whole code for $wgContactConfig['default'] and explain what field you want add.

39.53.154.161 (talkcontribs)

Thank you, got it working. Appending new field worked for me.


Reply to "How can I add an Additional Field"