Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4129 Zobrazení

Hello, I have a situation where I need a character field displayed on a xml view, but I dont want the value stored in the DB for security reasons

I am making a module that uses authorize.net so I need the user to enter the credit card info so that it can be processed, but I do not want to save the credit card info on the table.

Is there a way to not store character fields in the db?

I cant use a function field because its not editable, so I need a character field so that the user can enter the credit card info on the form and submit it.

Avatar
Zrušit
Nejlepší odpověď

Hello.

Yes you can use this:

fields.dummy(string='Credit Card', type='char')
Avatar
Zrušit
Autor

Thank you for your reply. When I changed them to the dummy fields, it passes False as the values of those fields. I need it to pass in the value entered by the user. Can the value on the dummy field be passed into a method when the form is submitted?

Well, it depends when do you want to process the credit card. Maybe you can just delete them after using that value.

Autor

Ya, I think that's what Im going to do. Thank you

Related Posts Odpovědi Zobrazení Aktivita
1
led 17
4909
2
čvn 18
16454
4
zář 24
21148
3
říj 20
4665
14
lis 17
8321