Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. alex de rafols
  2. F2C submission form templating
  3. Wednesday, 16 August 2017
  4.  Subscribe via email

I require the form field caption to be longer than 45 characters (this limit is set on the db column and all labels end up getting cut off at 45 characters). Can this be made longer in the db - if so how?

Alternately I tried using description in place of caption for the label, but this does not work either. Example instead of _CAPTION I am using _DESCRIPTION, but this does not render any label in the front end form UI

<tr class="f2c_field">
<td width="100" align="left" class="key f2c_field_label" valign="top">{$CP1_PHY_COND_DESCRIPTION}</td>
<td valign="top" class="f2c_field_value">{$CP1_PHY_COND}</td>

Responses (2)
F2C webmaster Accepted Answer Pending Moderation
Hi Alex,

Apologies for the late replay. I'm just back from holiday and Julien has just gone on one. The answer is yes but I'm not sure where in the DB as this is Juliens cup of tea. I'll let him know about your question but don't know if he can provide the answer while on holiday.

Please read the F2C documentation before asking questions! Thank you if you've done so ;)
Julien Accepted Answer Pending Moderation
Hi Alex,

Yes, this can be changed by enlarging the DB column and altering some code. This is perhaps something we can do in a future version. I agree that the 45 limit of this field is very strange.

There is however an easier way, without hacks and that is by using Joomla translation strings.
For instance if you enter JYES for the caption, it will be rendered as Yes when somebody has the English version.

You can create your own language strings and keep the string definition under 45 characters. The actual text that will displayed can be longer of course.

For example for the English version you can name your file en-GB.com_form2content_custom.ini and put it in the English front-end language directory. It will be loaded automatically.

  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.