Forums

Textarea box

rajs 04 Jun, 2015
I'm new to Joomla and not yet familiar with background hacks, so bear with me.

I'm using a text area box with WYSIWYG editor in one of my forms.
1) How to set character limit on a Textarea box?
2) How to set default style to H1 + Caps for a Text area box?

Unrelated question,
My form collects data for setting up a poll,
Data collected is the Poll question and all the different answer choices and some description.
I manged to post the description as a Joomla article and store all the data collected in the DB.
I basically need a different poll for each joomla article.

A want a poll that looks like
Poll Ques......
O Choice 1
O Choice 2
O Choice 3
(Submit button)

I need the results in a bar-graph format after an an answer is submitted.
Any suggestions on how I can do this?
I probably will need to run some script to create the poll while submitting the form.
Any extensions , plugin that can help?

Thanks
GreyHead 04 Jun, 2015
Hi rajs,

You might be better off looking for an existing poll component.

1) Please see this FAQ - but I doubt if it will work with a WYSYWYG text area, you may need to use an editor with that ability built in.

2) I don't know if you can do this or not.

You can create 'a different form' for each article with a single form if you identify the article in the form data. Check the FAQs for how to do that.

You can create charts from saved data but you need custom code to do that - there is a FAQ about using the pChart library with an earlier version of ChronoForms.

Bob
rajs 04 Jun, 2015
Thanks Bob,

"You can create 'a different form' for each article with a single form if you identify the article in the form data. Check the FAQs for how to do that."
Can you post the link to the FAQ? I don't see any relevant FAQs on the FAQ search.

I found the pChart FAQ, will give it a shot tonight.
This topic is locked and no more replies can be posted.