Announcement

Collapse
No announcement yet.

Mandatory Field - Red Star

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mandatory Field - Red Star

    Hi All,

    Any idea how to remove the Red star for mandatory Field, and i need to replace with running number for order release ID, because currently my system manually key in that order release ID.Please Help me...Important

    Thanks
    Saufil
    Attached Files

  • #2
    Re: Mandatory Field - Red Star

    Hi Saufil,

    After having a look at the attached image, i understand that you have modified your xsl/jspx to make the Order Release ID as a mandatory field.

    I am not aware of any way to remove the RED STAR from mandatory fields. Once you specify 'required = true' , this star appears on your field. One workaround i can suggest is to make it a normal text field ( required = false) and put in some javascript which will give an alert prompting the user to fill in the OR ID. This way it will remove the RED STAR and still satisfies the mandatory requirement ( prompting the user to fill in the field before finishing or navigating to other tabs). try screenValidate().

    I don't think the second part of your question is possible (unless you write your own utility method which will generate a seq no and invoke that method from your xsl to get the seq no and populate the OR ID field).Not sure of any other ways.

    Comment


    • #3
      Re: Mandatory Field - Red Star

      Hi Saufil,

      You can also use the current datetime to populate your OR ID and make it readonly. In this case you won't need to use the screenvalidate() or put any mandatory validation on this field.

      Hope this helps.

      Comment


      • #4
        Re: Mandatory Field - Red Star

        Thanks satya,

        where i need to modify required='yes' or required='no', Please advise.

        Thanks
        saufil

        Comment


        • #5
          Re: Mandatory Field - Red Star

          Hi Saufil,

          In your xsl, search for 'order_release/xid' . You will find something like this in the same template.

          <xsl:with-param name="required">true</xsl:with-param>. change the 'true' to 'false'.

          If you are using jspx, search for the same string 'order_release/xid' , you will find an attribute in the same template which will be like - required='true' , make it false.

          To find out which xsl/jspx you have to modify, open your new/edit page in a new window and on the top to the left side you will find an icon ( OTM or GC3). Click on it, it will display the xml and in the 2nd or 3rd line, you will see the xsl/jspx name.

          Regards
          Satya

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎