A
|
ann 6/23/2010 |
Leonardo, var ctrl = Runner.getControl(pageid, 'FieldName');
|
M
|
marthins 6/23/2010 |
Leonardo, if (strlen($value)==11){
if (strlen($value)==8)
|
O
|
onlline author 6/23/2010 |
Leonardo, to add brackets and slashes on the fly (when user is entering phone number) you need to add custom Javascript code in JavaScript Onload Event on the Events tab. Here is just a sample: var ctrl = Runner.getControl(pageid, 'FieldName');
|
O
|
onlline author 6/23/2010 |
Leonardo, I used the following masks: Check if number is CNPJ or CPF: if (strlen($value)==11){
if (strlen($value)==8)
|
M
|
marthins 6/23/2010 |
Leonardo, |
O
|
onlline author 6/23/2010 |
Leonardo, You should put this code on field properties -> "view as" settings -> custom. Abçs Anselmo
|
M
|
marthins 6/23/2010 |
Leonardo, |
O
|
onlline author 6/23/2010 |
Leonardo, Go to the List page, double click on the field you want to modify (or select properties), select "view as" tab and finally "Custom". Just copy and paste the code I mentioned. Please note that for CPF and CNPJ the mask will work only for 11 and 14 characters and the phone field for 8. If you want to use with any number dont check the lenght of the field. Abraços Anselmo
|
O
|
onlline author 6/24/2010 |
as instruções são simples. mas realmente nao aparece a mascara. instructions are simple. but it really does not appear to mask.
|
O
|
onlline author 6/24/2010 |
no work! help! |
A
|
ann 6/25/2010 |
Leonardo, ctrl.setValue(custom_value);
|
O
|
onlline author 6/25/2010 |
Leonardo, this code won't work because you can pass one parameter only in the setValue() method: ctrl.setValue(custom_value);
|
A
|
ann 6/28/2010 |
Leonardo, |
O
|
onlline author 6/28/2010 |
Oi Anselmo! aonde coloco esse trecho de codigo? Orbrigado
|
O
|
onlline author 6/28/2010 |
Leonardo, the example from the manual is working on the test file. Name of the form is editform1.
|
E
|
ericholiveira 7/24/2010 |
Olá Leonardo, thanks Ann and Anselmo ! with this code solved the visualization! Now I have a mask, when you begin typing in real time example |