Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Read Only Custom Topic Field

7 Posts
2 Users
0 Reactions
1,941 Views
Posts: 33
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lynne-benedict)
Member
Joined: 4 years ago
[#10211]

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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kylew)
Prominent Member
Joined: 5 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@lynne-benedict)
Member
Joined: 4 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: 5 years ago

Prominent Member
Posts: 728
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 4 years ago

Member
Posts: 33
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 5 years ago

Prominent Member
Posts: 728
Kyle
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 4 years ago

Member
Posts: 33
Kyle
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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