11 years ago
2
Topic

Hi there,

I thought this would be an easy task, but it's turning out to be much harder than I thought! 

I'm using Joomla 3.1.5, and Seblod 3.1.5. I've set up User Registration (without bridge) with some extra fields, and it's all working great. I used the default Joomla User menu link to "edit profile". Also works - amazing. 

The problem is that I need to hide (or disable) a couple of fields when the user is editing, rather than making a new account. For example, I don't want them to be able to change their Display Name.

I tried creating an extra form field (form_layout), and filling the live value with the URL parameter layout= . (URL is: dubai.directrouter.com/~nviwphuv/index.php?option=com_cck&view=form&layout=edit&type=user&id=70&Itemid=167 , on the field I selected Live Value -> URL -> Variable, then configured type=string and variable=layout).  I thought then I could make the other fields display conditional on the content of that field.

However, on the front end, the form_layout field doesn't get the value "Edit" from the url, it's blank. And on the back end, the field live value configuration is blank, even though I saved it.


Maybe there's a better way to accomplish this? All I really want to do is hide some fields in user profile "edit" view!

Thank very much!
- Amanda

Get a Book for SEBLOD
43 Posts
Mime
11 years ago
0
Level 1

Hi @kitchen,

I also tried playing with the live value and conditional states to hide/show fields. When editing user profiles the fields seems to ignore url-variables all together. When registering everything works fine.

I wonder if this is intentional or not. I guess we have to try doing it through custom templates for the forms.

About your settings not saving; try to delete the cache, and then open the modalwindows (live-value configuration) and do the changes. Let me know if that does it for you :)

regards,
mime

98 Posts
Edwin
11 years ago
0
Level 1

Hi guys

I'm not sure if I understand you correctly, but to hide fields on edit, set access to guest. That way, they will only see the field on registration. When they edit it they will be logged in (registered) so guest fields will be hidden.

Get a VIP membership