Autocalculate field in a form

Hi,

I have a form with the following fields

status - x,y,z
rating-1,2,3

When customer selects the status and rating,the next filled
automatically displays the correct likelihood according to the first two
filed selections as follows.
if status == x and rating == 1 then

liklihood- j.

Please help me to do this. Many thanks.

You need Javascript for this.

Brian C. wrote:

You need Javascript for this.

Yes, because I’m new to Ruby can you please explain this for me. Thanks.

Nipuna W. wrote:

Brian C. wrote:

You need Javascript for this.

Yes, because I’m new to Ruby can you please explain this for me. Thanks.

Questions about Javascript should be asked on a Javascript mailing list.

If you are using a web framework like Rails, then you need to
incorporate your Javascript into the HTML pages you generate from your
templates. So if you can’t see how to include the Javascript you’ve
written into your pages, you could ask on a mailing list relevant to the
framework you’re using (e.g. Rails, which has its own mailing lists)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs