Welcome, Guest
Username: Password: Remember me

TOPIC: [HOW TO] have updateable and not updateable fields

How to have updateable and not updateable fields 28 Nov 2013 17:48 #11706

  • vivek
  • vivek's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 2
  • Karma: 2
Hi,
How to have updateable and not updateable fields in a single form view?
The administrator has disabled public write access.

How to have updateable and not updateable fields 29 Nov 2013 10:13 #11708

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Two ways :

1
a. 'Exploded form'
b. Do not instance input. Only rendering value.

2 (Recommended)
a. Unset the value in the model : prepareTable()
Only existing values in the data are updated.
Coding is now a piece of cake
The administrator has disabled public write access.

How to have updateable and not updateable fields 29 Nov 2013 10:16 #11709

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
of course, even more simple.


Instance 2 bricks : Form + Fly
The fields in Form are uploadable
The fields in Fly are not.

But the result cannot be mixed. I mean one sub form file is a form, another is the fly.
So they will dispay in 2 different div groups.
Coding is now a piece of cake
Last Edit: 29 Nov 2013 10:17 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: vivek
Time to create page: 0.055 seconds

Get Started