Score:2

Number field type for specific format

cn flag

I have to store number data into database in format xx-xxxxxx-xx for example I have xml data in format: ISBN="10-000000-701" ISBN="11-000000-002" ISBN="11-000000-004"

and I need to store that number in db field but I don't know what field type to use. Any help?

Kevin avatar
in flag
There is an ISBN field module.
Score:3
de flag

You can create a 'simple text' field. Then you can add a constraint to that field to ensure that it is in the correct format.

Kevin avatar
in flag
Sure. But in this specific case of OP: https://www.drupal.org/project/isbn
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.