• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Making A Field "ReadOnly" If URL Parameter

Making A Field "ReadOnly" If URL Parameter 14 years 3 months ago #12529

Hi All:

My client has asked for a bit of odd functionality that I hope you can help.

I have a form that collects students' curriculum information for a society. The curriculum form can have two entry points. The student may first register personal information using the registration form and then continue straight on to the curriculum form. In this case, I am passing some information (such as name and student id) from the registration form to the curriculum form using URL parameters (as per 162-how-do-i-pass-a-parameter-through-the-url-and-how-can-i-catch-it-.html) and displaying it.

The other way that a student can arrive at the curriculum form is from the main menu.

Here's my problem. If the student arrives at the curriculum form from the registration form, the passed parameters are displayed as read only on the form (i.e., the student can't update the information). However, if the student arrives from the main menu, there is no parameter information and the fields should be accessible to allow the student to enter their name, etc.

As I mentioned, I can read the parameters as per the above instructions. However, is there any way that I can code it so that if I have a parameter, the corresponding field is turned to read only?

Thanks for any help you can give me.
The administrator has disabled public write access.
The following user(s) said Thank You: chappuis

Re: Making A Field "ReadOnly" If URL Parameter 13 years 6 months ago #15152

Were you able to figure this out...
I need the same thing...

Thanks
The administrator has disabled public write access.

Re: Making A Field "ReadOnly" If URL Parameter 13 years 6 months ago #15170

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

You can simply add something like this in the Additional Attributes area of the field in question;

readonly="readonly"
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: chappuis

Making A Field "ReadOnly" If URL Parameter 12 years 1 month ago #22066

  • prcs
  • prcs's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello there,

Did you got a solution for this issue.
I've the same problem, need to turn field readonly if receive param.


Thansk in advance
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!