Viewing 2 reply threads
  • Author
    Posts
    • #8737

      1 – What would be the best way to create a monetary field that only accepts valid amounts (0.00)? I’m not sure if I should use a text or numeric field.

      2 – Is there a way to create a field that’s not editable? I want to have a field for holding the total that’s visible but can’t be edited.

    • #8739
      Steve
      Keymaster

      Any tutorial you find on converting a number field to currency would work

      Here’s one I found: http://jsfiddle.net/uzbjve2u/. You don’t need the javascript. Pass min and max as attributes in the Piklist field.

      For a field that not’s editable you can use the standard HTML attribute readonly:
      https://www.w3schools.com/tags/att_input_readonly.asp

      
        piklist('field', array(
          'type' => 'text'
          ,'field' => 'name'
          ,'label' => 'Name'
          ,'attributes' => array(
            'readonly' => 'readonly'
          )
        ));
      
    • #8741

      😉 Thanks again!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.