Hi,
what exactly is your problem?
I don't know how to put the text fields of the columns
Where do the texts come from?
Don't you know how to insert the texts?
Or fon't you know how to make them unchangeable?
For the second two quick solutions.
1. Do the same as in the "Rango cartera" example. Extend it a bit.
2. Use an array(text), insert the texts by a previous equation like
Code:
{Q2c_Y001_X01='1234567'}
{Q2c_Y001_X02='1'}
{Q2c_Y001_X03='José Ramón Mercedes S.A.'}
{Q2c_Y002_X01='222222'}
{Q2c_Y002_X02='3'}
{Q2c_Y002_X03='INTEGRAL'}
{Q2c_Y003_X01='98765'}
...
If the source of these texts are previous questions you have to use them
{Q2c_Y001_X03=Q1_SQ004}, or something like that.
Set the first three columns to "readonly" by this script.
Additionally here the alignment of each column is set.
You have to do it for each single cell.
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('input[ name="{SGQ}Y001_X01"]').prop('readonly', true).css('text-align', 'right');
$('input[ name="{SGQ}Y001_X02"]').prop('readonly', true).css('text-align', 'center');
$('input[ name="{SGQ}Y001_X03"]').prop('readonly', true).css('text-align', 'left');
$('input[ name="{SGQ}Y002_X01"]').prop('readonly', true).css('text-align', 'right');
$('input[ name="{SGQ}Y002_X02"]').prop('readonly', true).css('text-align', 'center');
$('input[ name="{SGQ}Y002_X03"]').prop('readonly', true).css('text-align', 'left');
$('input[ name="{SGQ}Y003_X01"]').prop('readonly', true).css('text-align', 'right');
$('input[ name="{SGQ}Y003_X02"]').prop('readonly', true).css('text-align', 'center');
$('input[ name="{SGQ}Y003_X03"]').prop('readonly', true).css('text-align', 'left');
...
});
</script>
And the script to adapt the column width you know already.
And your second question.
No. the header is a header, not on entry field.
You can insert the actual date - as I did here - by {date('d.m.Y')}
Or you preset the actual date into a additional column, so that the respondent can change it if necessary.
Up to you.
And the "only numerical" entries?
Either validate with something like "
(is_empty(Q1_Y001_X04) or is_numeric(Q1_Y001_X04)) AND (is_empty(Q1_Y002_X04) or is_numeric(Q1_Y002_X04)) AND ...
Or use an input mask (you already have the links and examples)
Joffm