Page 1 of 1

Masking input fields in subform

Posted: Mon Jan 09, 2023 1:27 am
by yvesf
Hello,


I would like to mask input fields in a subform. How can you do that ? No access to custom tab, I used to do that with the event behind the custom tab of the object. How can you do that ? at the form level ? Could you give me an example ?
Normally I use this method to format --> viewtopic.php?p=23069#p23069
Many thanks for your help.


Yves

Re: Masking input fields in subform

Posted: Mon Jan 09, 2023 4:50 am
by kev1n
Place the code in the main form's Custom Code field.

Re: Masking input fields in subform

Posted: Mon Jan 09, 2023 9:37 pm
by yvesf
Hello Kevin,

Code is already there but because I am on a subform, on the field, I cannot open the custom tab and use the onkeydown() event to put the mask concerning this field. How to invoke the onkeydown() even at the form level to impact the subform ?
Many thanks for your answer,

Yves

Re: Masking input fields in subform

Posted: Tue Jan 10, 2023 5:42 am
by kev1n
I can't understand it. You double click on a title of the subform field and in the popup you can enter the event in the Custom Code tab.