Notifications
Clear all

[Solved] Read Only Custom Topic Field

7 Posts
2 Users
0 Reactions
1,010 Views
Posts: 33
Customer
Topic starter
(@lynne-benedict)
Member
Joined: 2 years ago

I would like for some of the custom fields to be read only (example: autogenerated ID). How can I achieve that ? Thank you

6 Replies
Kyle
Posts: 728
 Kyle
(@kylew)
Prominent Member
Joined: 3 years ago

@lynne-benedict,

You can use HTML field, write the needed text in the HTML.

Example: 

<p>This is html field in the topic</p>
Reply
Posts: 33
Customer
Topic starter
(@lynne-benedict)
Member
Joined: 2 years ago

I would like to include in my HTM field some dynamic data via shortcode. How do I do that ? Thanks

Reply
4 Replies
Kyle
 Kyle
(@kylew)
Joined: 3 years ago

Prominent Member
Posts: 728

@lynne-benedict,

I would like to include in my HTM field some dynamic data via shortcode.

I don't follow you, please provide more info.

Reply
Customer
(@lynne-benedict)
Joined: 2 years ago

Member
Posts: 33

@kylew Sure. 

Use Case:

Using Topic Custom Fields  Add On I created a field unique-id for my Topics. It will store ID unique to my Subforum. This field is editable by Moderators only and they are responsible for assigning it. 

I want Users to see this field in read-only mode. How do I reference this field unique-id from HTML field. 

Reply
Kyle
 Kyle
(@kylew)
Joined: 3 years ago

Prominent Member
Posts: 728

@lynne-benedict,

Do the Following

Navigate to Dashboard > wpForo > Topic Fields, add new Topic Form, Select the Forums where the Form should work and select which Usergroup members can access to that form.

Create a new Field by your needs, set in the needed part of the topic.

Reply
Customer
(@lynne-benedict)
Joined: 2 years ago

Member
Posts: 33

@kylew 

I did what you suggested with 1 exception. I have multi-boards. So Topic Fields does not show up under wpForo but instead shows up under each separate board. 

So Navigated to Discussion Board > Topic Fields, add new Topic Form, Select all Forums where the Form should work and selected Moderator Usergroup which is allowed to modify my custom topic field unique-id . 

Now I need to enable other Usergroups to view this field (and not to edit). How do I do that ? I am unable to create 2nd Form for the same forums as it shows up disabled after 1st Form got ceated

Reply
Share:
Scroll to top