We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

warning message code

The CRF i am working on contains several items for which the single-select response to be selected is either YES/NO. On selecting a No response it should trigger a warning message.
Here is my code. For some reason its not working. Can you tell me what's wrong?


jQuery(document).ready(function($) {
var fieldToCheck = $("#A").parent().parent().find("select");

function setMessage(){
var valueToCheck = fieldToCheck.val();
if (valueToCheck && (valueToCheck ==1)){
$("#A").html("A 'No' answer will exclude the subject. ");
else {


  • vic-avic-a Posts: 20
    There could be an issue with your selector. most of your code works here https://codepen.io/anon/pen/AXPGRb . Let me know if I misunderstood.

    . If interested to learn more, have an intro and couple more videos at the bottom.

    Let me know if any questions


    Jini Intro:
    Quick Compare Field Validation:
    Conditional Show/Hide a section:
    Turn any Field into an autofill field:

  • vic-avic-a Posts: 20
    @e74813 Sorry, it seems like audio is not very clear. We will be fixing it soon. Let me know if something is not clear.
Sign In or Register to comment.