Skip Navigation

[Resolved] How to insert field group title in "of the view"

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Rostislav Avtodiychuk 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1483311

Tell us what you are trying to do?
I have a simple drag and drop construction on javascript, HTML, CSS.
I have a simple unordered list for sorting.

<ul id="sortable" class="pills text-center align-self-center">
          <li id="1" class="ui-state-default">text 1</li>
          <li id="2" class="ui-state-default">text 2</li>
          <li id="3" class="ui-state-default">text 3 </li>
          <li id="4" class="ui-state-default">text 4</li>
          <li id="5" class="ui-state-default">text 5</li>
          <li id="6" class="ui-state-default">text 6</li>
          <li id="7" class="ui-state-default">text 7</li>
 < /ul >

Right position of sorting controlled by ID
Through content template it work perfectly.

I created new Post type and insert custom fields - repeatable fields
hidden link

I created a new view for show my list for sorted in loop

	
           <section id="quizSection ">
         <div>

        <ul id="sortable" class="pills text-center align-self-center">
<wpv-loop>
		[wpv-post-body view_template="loop-item-in-vyvod-punktov-v-sortirovke"]
</wpv-loop>
        </ul>
        </div>
        </section>
      	

in view-template i use

<li id=" field group title" class="ui-state-default">[types field="point-name"][/types]</li>

how i can insert in my ID field group title?
UPDATE:
I found solution for my question in here - https://toolset.com/forums/topic/display-title-of-group-fields/

But i have another question for this view. Problem in rules they - right answer is in javascript code
in this code

$(".pop").fadeIn(300);
        if(arrList.join() === "1,2,3,4,5,6,7"){ $("#message").text("You are right");}else{ $("#message").text("wrong");}

we want made many another posts and the order of the numbers of the correct answers will change and may be logical informatiion. How i can set the order for each post individually.
I thought to create a custom field - sinle line and write the correct order numbers there, but I can’t understand how to insert the editor into the javascript.
Maybe there is some other way?
thanks for help!

#1484747

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

we want made many another posts and the order of the numbers of the correct answers will change and may be logical informatiion. How i can set the order for each post individually.
I thought to create a custom field - sinle line and write the correct order numbers there, but I can’t understand how to insert the editor into the javascript.
==>
I do not understand this. Can you please specific with more detailed description and few screenshots what exactly you want to achieve and what javascript you want to add exactly where?

#1484909

Minesh i'm sorry for disturb you. We find a solution.
Sometimes Ask the question is 80% of answered on them.
Anyway, Thank you very much!