× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Change default behavior for form fields

10 năm 1 tuần trước #478 bởi Nancy Anderson
Change default behavior for form fields was created by Nancy Anderson
Hi,
  I inherited a component and a few of the table filed names appear to be joomla reserved words. 

For example, there is an address table that has a field named 'state'. Joomla is interpreting that as the published/unpublished field. So here's the question, 

1. Can I mark the field in the component creator in some way to  stop that from happening automatically in the code? 

2. Where would I need to change the code for the admin edit forms to stop the default rendering of this field as a drop down.
(I found where to do that in the lists, but it isn't as obvious in the edit screen.)

thanks,
nancy

 

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

9 năm 11 tháng trước #516 bởi Erik van Doorne
Replied by Erik van Doorne on topic Change default behavior for form fields
Hi Nancy, I pointed out this is happening in other situations and with other reserved words as well. The form should validate for/against reserved words and not allow you to use them as field names.

Have you tried simply renaming the field name ?

Regards,

Erik

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

9 năm 11 tháng trước #519 bởi Nancy Anderson
Replied by Nancy Anderson on topic Change default behavior for form fields
Hi,
  Thanks.

Just for clarity the component was already built, I was trying to use Component Creator to build a admin back end for it.  Changing the field name would impact a moblie app that is already in use, so that is not an option, darn it. Obviously, for new compuents this isn't a problem. I ended up using Fabrik. It's definitely not CC, but for this use it worked okay.

thanks again,
nancy

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

Thời gian tải trang: 0.050 giây
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.