R.IN.G.O Lavoro Over 40
Member
I need "read only" a databasejoin element.
There isn't a "read only" flag, so I set
But, if I need the value to use it in JS
I get the label, not the value.
If I use
If I set
There isn't a "read only" flag, so I set
But, if I need the value to use it in JS
Code:
if (typeof stato_preesistente_in_db === 'undefined')
{stato_preesistente_in_db = Fabrik.getBlock('form_97').elements.get('fabrik_nominativi___Stato_Simpatizzante_Socio').getValue();}
I get the label, not the value.
If I use
Fabrik.getBlock('form_97').elements.get('fabrik_nominativi___Stato_Simpatizzante_Socio_raw').getValue();
I get an error: "TypeError: Cannot read property 'getValue' of null"If I set
Fabrik.getBlock('form_97').elements.get('fabrik_nominativi___Stato_Simpatizzante_Socio').getValue();
give me the right value ("2"), but obviously it isn't read only.