Submit Form for chosen type

More
12 years 5 months ago #25860 by ameliste
Hello,

I have some several problems considering Flexi Forms for submitting articles.

I have different article types and I would like to create submit form for one of the types.

It appears that when I use form for type X it shows all fields that are conneted to other types and not only those that are conneted to the X type.

Is it normal? And maybe do you have some quick solution for this problem?

Second thing, few of the fields are required for every article type. Is it possible to disable somehow the description field from the forms?

I use joomla 1.5 [latest version] and Flexicontent [version 1.5.6 r1336]

Thanks in advance for answer,
Ameliste

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

More
12 years 5 months ago #25865 by micker
Replied by micker on topic Submit Form for chosen type
hello

ameliste wrote: It appears that when I use form for type X it shows all fields that are conneted to other types and not only those that are conneted to the X type.

on backend or front end ?
strange it work perfect for me

ameliste wrote: Second thing, few of the fields are required for every article type. Is it possible to disable somehow the description field from the forms?

you can do not use description (go to your type add disable it) but it broke joomla content compatibility
... if you use front form
overvide form and use display:none; in style for description
tuto here
www.flexicontent.org/documentati ... -form.html

regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 5 months ago #25866 by ggppdk
Replied by ggppdk on topic Submit Form for chosen type
Fields not assigned to type should not appear in the form, we have not changed anything relevant recently that could cause this,

maybe double check the Content Type names and field names?

About hiding the description field, yes you can there is an option in each Content Type configuration


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 5 months ago #25869 by ameliste
Well it works on backend, and on frontend it takes fields from different type.

It is strange, because it seems that for few firstly created types it creates correctly forms. And for the last types (I mean ID: 19, 20) it takes the type that was created as second one (ID: 2).

Right now I have 20 types. I do not know if it could be the case, there are some limits in creating types?

Thanks,
Ameliste

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

More
12 years 5 months ago #25871 by ameliste
And I would even add that.

All types from
ID 10 to 19 takes the fields from the type ID 1.
ID 20 to 29 takes the fields from tye type ID 2.

It takes first digit from the number?

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

More
12 years 5 months ago #25872 by ameliste
And I think I have found the problem:

in views/items/view.html.php in line:
Code:
337: JRequest::setVar('typeid', @$menu->query['typeid'][0]); // This also forces zero if value not set

As it is string it takes only first character from the variable.

When I use only
Code:
$menu->query['typeid']

It returns correct ID of the type.

So we can say that the problem is resolved, isn't it? :)

Greetings,
Ameliste

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.372 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline