" />But (1) now my customer has to write in the event name and event date directly into the link on the page linking to the form and (2) this won't work (or perhaps it would work, but I won't do it) for the introduction text since it is too long.Please tell me if you want more details, I tried to explain it as good as I can.I would be thankful for any commetns and hints!"> Form with editable text - Forums

Forums

Form with editable text

zoopzoop 10 Apr, 2008
Hi everyone!

I am a beginner with Chronoforms and I need some advice on how to solve a problem.

I need to create a form for a customer that contains some parts that can be easily changed by the customer, i.e., without dealing with sourcecode.
It is a event-sign-up form and the customer wants to be able to edit a short introduction text (max. 5 lines I guess), the name of the event and the date of the event.
The goal is to have one form that can be used for many events.

Now, the best thing would be if the form could pull the data from some place where it is easily updateable for the customer.
Does anyone know how to do this?

I solved the problem with the event name and event date by using GET parameters.
The link to my form would be
index.php?option=com_chronocontact&chronoformname=anmalan&eve=EVENTNAME&date=DATE

and my form code would contain
<input type="text" value="<?= $_GET["eve"] ?>" />
<input type="text" value="<?= $_GET["date"] ?>" />

But (1) now my customer has to write in the event name and event date directly into the link on the page linking to the form and (2) this won't work (or perhaps it would work, but I won't do it) for the introduction text since it is too long.

Please tell me if you want more details, I tried to explain it as good as I can.

I would be thankful for any commetns and hints!
GreyHead 11 Apr, 2008
Hi zoopzoop,

Quick answer. I think you could do this by having one private form for the customer (check their login id) to create table entries for the events using an event_id. Then use an second form for the subscribers that looks up the event info depending on the event_id.

Bob
Max_admin 11 Apr, 2008
Hi zoopzoop,

From where do you want to get the event data ? are they saved on DB or coming from another form ?

Cheers

Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
zoopzoop 11 Apr, 2008
GreyHead,
that sounds good!
Is there any tutorial available on how to create tables and fill in data from a form?

admin,
the event data is not saved anywhere yet.
Ideally I want to give the customer the possibility to write it directly into the form but without having to deal with the sourcecode.
But I suspect that is not possible with Chronoforms, is it?
So saving it into a db and accessing it based on a event_id, as GreyHead suggested, seems like the best option.
I would be thankful for any tips or a short walkthrough on how to do that!
GreyHead 11 Apr, 2008
Hi zoopzoop,

I don't think there is a tutorial or FAQ on this though there is information all over these forums.

Before you start coding from scratch (or have someone do it for you) you might want to look at other Joomla modules. For example I use AddEvents for something very similar - it has a few small bugs but is a good module allowing sign-up and payment for one or many events. There is a fairly simple backend form that your client could use to set up new events.

If you do need to develop from scratch then come back and we can take you through the steps.

Bob
This topic is locked and no more replies can be posted.