Happy accident (protected value?)

Viewing 3 reply threads
  • Author
    Posts
  • January 9, 2023 at 2:50 PM #48589

    Matthew Carpenter
    Participant

    So I am new (as you may know).
    I went onto a coding adventure to output a value in a desired format.

    When I add a new record there are some values that are required for each record.
    Optimally I do not want those to ever be accidentally changed. So far being new to TapForms I have had to be very carful when using a copy/paste from MY form so I don’t change a value. When I enter a new record I use the default layout but when I dig in and use my data I use MY custom form.

    I do not know if there is a way to lock a value on a custom form but what I learned is that the output value of a script on MY custom form cannot be altered easily.

    So my silly question is, can we lock a value so it cannot be changed on a custom form but only from the default layout?

    January 9, 2023 at 3:00 PM #48592

    Brendan
    Keymaster

    Hi Matthew,

    There’s no function to lock a field on a custom form. You can lock the position of a field so you don’t accidentally move it. But that’s not used for preventing editing on a custom layout. But what you can do is just not include that field on your custom layout and it will still be available on the Default Layout. With custom layouts you don’t have to have every field available displayed there. Not even for script or calculation fields to work. They can be on your custom layout even without any of the fields they reference. And you can create as many custom layouts as you like.

    Thanks,

    Brendan

    January 10, 2023 at 7:15 AM #48600

    Lane Robinson
    Participant

    Use an extra field. One that is a simple calculation field that equals the field you enter. You can display the calculation field on the custom form but not include the field you enter data.

    January 10, 2023 at 8:17 AM #48601

    Matthew Carpenter
    Participant

    Good Morning Lane,
    DUDE! that is precisely what I was thinking!
    The issue I have with Brendan’s solution is that I need that data to be viewable at all times.

    Thank you so much for validating my idea. I am so new to this DB thing and learning as I go.

    -Matthew

Viewing 3 reply threads

You must be logged in to reply to this topic.