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

naught101’s picture

Why? What's the use-case? It's pretty unusual for a vote to need decimal resolution.

bysv’s picture

Thanks 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!

naught101’s picture

I 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.

bysv’s picture

Thanks 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!

naught101’s picture

Status: Active » Closed (won't fix)

Rate 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.

ivnish’s picture

Assigned: bysv » Unassigned
Issue summary: View changes