Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Trying to change the default value of a Node

    Hey guys, I am not new to coding, but I am new to Javascript, and we have a field in our POS (point of sale) system which we need to have populate with a default value.

    I believe I have found the line of code that creates the field:

    [CODE]Node Name="Qty" ComponentType="Edit" Layout="HorizontalFlow" Width="30" Width2="60" GridRows="1" GridColumns="3" Font="Tahoma" FontSize="12" Title="Qty" RequireData="N" IsDate="N" IsHidden="N" IsPersistent="N" IsFind="N" IsDataAware="N" IsDisabled="N"/>
    </Node>[ICODE]

    So what we need is that field to automatically fill with a default value of "1", but still be editable if we need to change the value.

    Thanks so much in advance!

  • #2
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry Mod, feel free to delete this duplicate, I was reading the code snippet instructions as I was typing, which caused me to type the icode instead of /code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •