In a form I want some text-fields to show left of the label.
I found in the code the id's of the wrappers and added some css to make that work. But after saving the whole form again, new id's are generated and the layout goes back to labels left and textfields right.
I tried to add a div class="gotoleft" in a 'header text' above those fields and the closing div in a 'header text' below, but that caused the whole form to crash (had to get into the database to get those out).
I tried to add a classname to the field, but that classname is only rendered to the fieldelement, no option for the label, or the classname for the contaier tag.
I tried css to make all the textfields output with the fields on the left, but then there is no way to put the other textfields to the right again.
Is there any way to get some textfields show on the left and labels on the right?
I found in the code the id's of the wrappers and added some css to make that work. But after saving the whole form again, new id's are generated and the layout goes back to labels left and textfields right.
I tried to add a div class="gotoleft" in a 'header text' above those fields and the closing div in a 'header text' below, but that caused the whole form to crash (had to get into the database to get those out).
I tried to add a classname to the field, but that classname is only rendered to the fieldelement, no option for the label, or the classname for the contaier tag.
I tried css to make all the textfields output with the fields on the left, but then there is no way to put the other textfields to the right again.
Is there any way to get some textfields show on the left and labels on the right?
Hi carsten888,
If you set IDs for your form elements then they don't change when the form is re-saved.
You can add 'wrapping' divs as you describe using the Custom Element element from the Advanced group; that works OK for me.
Bob
If you set IDs for your form elements then they don't change when the form is re-saved.
You can add 'wrapping' divs as you describe using the Custom Element element from the Advanced group; that works OK for me.
Bob
If you set IDs for your form elements then they don't change when the form is re-saved.
AhA! That worked. Thank you. I don't know why I overlooked that.
Just to share my css:
#label_to_the_right_container_div label{
width: 550px;
float: right;
}
the field id is 'label_to_the_right', the rest is added when the form is generated.
This topic is locked and no more replies can be posted.