Revise line item form, force product options to be uppercase only

18 views
Skip to first unread message

Shaul Dover

unread,
Feb 22, 2021, 3:47:28 PM2/22/21
to Stone Edge User Group
There is anyway I can force the fields of the product options in the revise Line Form to be uppercase only? 

tle...@earthsunmoon.com

unread,
Feb 22, 2021, 5:39:03 PM2/22/21
to Stone Edge User Group
Under cmdOK in the form, you could change:

    If getparm("ShowOrderOptions") Then
        For i = 1 To 10
            Set c = Me("cboOption" & i)
            Set C2 = Me("txtOption" & i)
            If c.visible Then
                gOption(i) = c
            Else
                gOption(i) = C2
            End If
        Next
        gOption(0) = Me.txtFreeFormOption
    End If

to:

    If getparm("ShowOrderOptions") Then
        For i = 1 To 10
            Set c = Me("cboOption" & i)
            Set C2 = Me("txtOption" & i)
            If c.visible Then
                gOption(i) = c
            Else
                gOption(i) = UCase(C2)
            End If
        Next
        gOption(0) = Me.txtFreeFormOption
    End If

Shaul Dover

unread,
Feb 23, 2021, 9:21:33 AM2/23/21
to Stone Edge User Group
That did not made any change.

tle...@earthsunmoon.com

unread,
Feb 23, 2021, 10:21:27 AM2/23/21
to Stone Edge User Group
That's odd.  If you add new text to an option with that code in place, it should force it to UpperCase after the revision is committed.  Are you talking about just viewing existing option in uppercase in the form?
Reply all
Reply to author
Forward
0 new messages