Hello,
How is posible to create a new 'value type' that show an input field to allow users vote with the value they want??
I need to allow users to vote a personal punctuation through a numeric text field.
Thanks.
Hello,
How is posible to create a new 'value type' that show an input field to allow users vote with the value they want??
I need to allow users to vote a personal punctuation through a numeric text field.
Thanks.
Comments
Comment #1
naught101 commentedWhy? What's the use-case? It's pretty unusual for a vote to need decimal resolution.
Comment #2
bysv commentedThanks for your repy,
I have a content type to create "math problems" and i want to let people to send the solution in a text field located in the node.
I think the features o the rate module can be help me to manage the submitted values (compare with the solution, send emails when correct ...)
If you think this is not a good choice, any idea how I could do?
Thanks!
Comment #3
naught101 commentedI think it's probably not a good choice. I think you would probably be better off with a webform, with some custom validation code. That module is specifically designed for arbitrary user-submitted data, whereas this is designed for rating content. You're bound to have trouble if you use rate like that.
Comment #4
bysv commentedThanks naught101,
I'm trying to compare the value "solution" stored in the math problem with a submission from a webform field using webform as block, but i dont know how can i relate these two values.
For this reason i thoght of the rate module but changing the value type.
Thanks!
Comment #5
naught101 commentedRate module also has no way of comparing values. It's simply not designed for that purpose.
You can do anything you like with the data from a webform. It will require coding, but much less than would be required using rate. Have a look here: https://drupal.org/node/1291574, and also check out the rest of the webform documentation for ideas.
Comment #6
ivnish