hi,
can i build a form with data from the db?
I should make a page similar to an email list, with a checkbox as the first field of the list. for to change only the rows that are checked
I do not know the number of rows that returns the db
I have to build the form I in the Custom Code?
tks
Hi federcla,
I think that you could do that but it would need to use mostly Custom Code.
Bob
PS Possibly it could be done in ChronoConnectivity?
I do not know ChronoConnectivity
ok, I do it in code, it seems to me the best solution
thanks
Hi federcla,
I'm sorry, I don't understand what you are trying to do here. Is this in a ChronoForm? If so then you probably don't need the <form> tags????
Bob
sorry,
I'm building a form with data that I get from a db
the form has the following fields:
checkbox
text box
dropdown
I created a form with ChronoForms and inserted into a Custom Code Action, the code for to create the fields
Now I have to put a button to send the information to the database selected in the form, but since I'm using choronoforms I have a lot 'of doubts.
I have to create a forms? how do I send the user's selection?
I hope I have explained better what I'm trying to do
tks
Hi federcla,
This code won't work because every checkbox (and every select) has the same name so only the last one will be submitted. You will need to give them different names.
I'm still not clear what you are trying to do here?
Bob
Hi federcla,
What does the Debugger output look like?
What code are you using to save the results? The DB Save action won't save multiple rows.
Bob
hello bob,
I was getting worried that you were not online🙂
the problem is that I do not know how to get the data to another custom code, I was thinking - hoping that they could save themselves automatically in the global variable $data di choronoforms, so as to recover
at the moment I do not mind the inclusion in the database, if I can pass an array with all the necessary information, I will use a foreach and an insert to the db
Hi federcla,
Anything that is submitted from a ChronoForm is added to the $form->data array. You can use that to pass data between actions in the same event.
Bob
Hi federcla,
It should work if there are values in $form->data['prova']
Use a Debugger action to see what is there.
Bob
Hi federcla,
As you see there is nothing on 'prova' . . . now you have to work out why that is. Is the input inside the ChronoForms form tags when you view the page source?
Bob
sorry but I did not understand
Hi federcla,
There is no $form->data['prova'] . . . why not??
Bob
Hi federcla,
Sorry, I'm lost. I have no idea what that is supposed to do :-(
Bob