Discussions

 View Only
  • 1.  Required Field in Code Page HTML/javascript

    Posted 11-02-2022 17:09
    I have created a code page with HTML and Javascript.  I have the following field that is required in the QuickBase form itself:


    However, I would like this to translate to the code page:

    <tr><td style="font-family: Sans-serif;" class=m>Contractor Business Name:*</td>
    <td class=m><input type=text size=40 name=_fid_6 ></td></tr>

    How do I make the field in the code page required?  or will that kind of functionality need to happen in the javascript.  If so, how?

    Thank you so much!

    ------------------------------
    Lija Harris
    ------------------------------


  • 2.  RE: Required Field in Code Page HTML/javascript

    Posted 11-04-2022 13:17
    Lija -

    It looks like you could probably just put the 'required' attribute in your input section. Here's the info I found:

    https://www.w3schools.com/tags/att_input_required.asp

    ------------------------------
    Blake Harrison
    bharrison@datablender.io
    /
    ------------------------------