You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to dynamically disable class="rn_Required"

Accepted answer
15
Views
5
Comments
edited Oct 26, 2018 6:55PM in Customer Portal 5 comments

Summary

how to dynamically disable

Content

How can I achieve something like this at the custom widget Logic.JS file?
 
document.getElementById('???????').removeClass = "rn_Required";
 
This is the acutal page source
 
<div id="rn_SelectionInput_27" class="rn_SelectionInput rn_Input">
    
    <div id="rn_SelectionInput_27_LabelContainer">
        
        <label for="rn_SelectionInput_27_Incident.CustomFields.c.pfrd_apt_time" id="rn_SelectionInput_27_Label"  class="rn_Label">Preferred Appointment Time                    
            <span class="rn_Required">*</span><span class="rn_ScreenReaderOnly"> Required</span>
                        </label>
    </div>
    
    <select id="rn_SelectionInput_27_Incident.CustomFields.c.pfrd_apt_time" name="Incident.CustomFields.c.pfrd_apt_time">
        
            <option value="">--</option>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!