Making form read only

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

I am sure I can make the form non modifiable  by using roles, but if there are users who are in multiple roles, how do we restrict the form to be read only an all cases.  I just don't want to make each field read only.  Wish there was a section based settings to achieve this. 

Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,074 Points 20k badge 2x thumb
Using IOL try this:

$("form[name=editform] :input").attr("disabled", true);

But this seems like an odd thing to do.
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb
Thanks a lot. This form is designed to provide info to users on attributes of a store. Hence, the need to make it read only.  Will appreciate guiding me on how to use image on load. Never done this before.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,074 Points 20k badge 2x thumb
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 67,760 Points 50k badge 2x thumb
My suggestion to make the Form read only for all Roles is to have a field to calculate under what conditions the form will be read only (Maybe for some roles it is always read only) and use Role Permissions.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,074 Points 20k badge 2x thumb
My suggestion it to put a bunch of bats on the form to scare away anyone who would dare edit the form. See:

https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=td
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 67,760 Points 50k badge 2x thumb
I almost snorted my cherrios  through my nose this morning when I saw you solution in action.
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb
LOL, Just needs a few shooting guns!
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb
Mark just going by what you wrote, I have this embedded report on the form. How do I make this read only?  What you suggested will be helpful for the main form but may not change the access level to the child form (showing projects for each store).
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,152 Points 3k badge 2x thumb
Dan,  I am trying to learn and use this option.  When you say the following on Step 3

"In any table where you want to use an image onload field (typically named [-]) create a text formula field with some HTML allowed using this formula"

What do you mean by [-]? What sort of field I create?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,074 Points 20k badge 2x thumb
[-] is my notation that the field is named the single character hyphen. It is a text formula field with some HTML allowed.

You can actually name the field anything you want and then arrange for the field on the form to have alternate label text selected but left blank. The reason [-] was chosen for the name is that if the field is used in a report it will take up the least amount of space.