Change value for an input-field

  • Florian Schmid
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 3 weeks ago #158640 by Florian Schmid
Change value for an input-field was created by Florian Schmid
Hi Tuan,
i would like to change the value for the inputfield at "event_capacity" from "numbers" to "text"  in the back-end. Where can i change this?

Thanks!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 months 3 weeks ago #158647 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change value for an input-field
Hi

Not sure why you need to change this but if it is really needed, you can modify code. The file is administrator/components/com_eventbooking/view/event/tmpl/default_general.php

Please note that once the modification is done, you should move the modified file to template override so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Florian Schmid
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 2 weeks ago #158678 by Florian Schmid
Replied by Florian Schmid on topic Change value for an input-field
Thanks Tuan,

I switched to "text" but it doesn't save me e.g. "5 Person". Only the number is saved.

Regards,
Florian

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 months 2 weeks ago #158679 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change value for an input-field
It's because the field is designed to accept Number only. Event Capacity is used to allow defining maximum number of registrants the event can accept, so it could not accept and store text value here

Tuan

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
10 months 2 weeks ago #158680 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Change value for an input-field
If you need to store and display random text, better use event custom fields eventbookingdoc.joomservices.com/basic-s.../event-custom-fields

Regards,

Tuan

Please Log in or Create an account to join the conversation.