• WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • AI/ML
    • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG
    • WHO WE ARE
    • WHAT WE DO
      • Salesforce
        • Implementations
          • Sales Cloud
          • Service Cloud
          • CPQ
          • Field Service Lightning
          • Field Service for SMEs
        • Developments
          • Salesforce Customization
          • Custom Application Development
          • AppExchange Product Development
        • Migrations
          • Classic to Lightning Migration
          • Other Systems to Salesforce Migration
        • Integrations
      • AI/ML
      • Agentic AI
    • HOW WE DO
      • Delivery Model
      • Our Works
    • REACH US
      • Contact Us
      • Careers
    • BLOG
  • [email protected]
  • (+91) 44-49521562
Merfantz - Salesforce Solutions for SMEs
Merfantz - Salesforce Solutions for SMEs
  • WHO WE ARE
  • WHAT WE DO
    • Salesforce
      • Implementations
        • Sales Cloud
        • Service Cloud
        • CPQ
        • Field Service Lightning
        • Field Service for SMEs
      • Developments
        • Salesforce Customization
        • Custom Application Development
        • AppExchange Product Development
      • Migrations
        • Classic to Lightning Migration
        • Other Systems to Salesforce Migration
      • Integrations
    • AI/ML
    • Agentic AI
  • HOW WE DO
    • Delivery Model
    • Our Works
  • REACH US
    • Contact Us
    • Careers
  • BLOG

Drag and Drop Functionality using Visualforce Page in Salesforce

  • July 27, 2017
  • Merfantz Editor
  • Salesforce Developments Tutorial
  • 0

Sometimes, We have strucked in a script like drag and drop, here is the simple and easy code. Use below code to achieve this process.

<apex:page >
<html lang=”en”>
<head>
<meta charset=”utf-8″ />
<meta name=”viewport” content=”width=device-width, initial-scale=1″ />
<title>jQuery UI Draggable – Default functionality</title>
<link rel=”stylesheet” href=”//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css” />
<link rel=”stylesheet” href=”/resources/demos/style.css” />
<style>
#draggable { width: 100px; height: 100px; padding: 0.5em; }
</style>
<script src=”https://code.jquery.com/jquery-1.12.4.js”></script>
<script src=”https://code.jquery.com/ui/1.12.0/jquery-ui.js”></script>
<script>
$( function() {
$( “#draggable1” ).draggable();
$( “#draggable2” ).draggable();
$( “#draggable3” ).draggable();
$( “#draggable4” ).draggable();
} );
</script>
</head>
<body>
<div id=”draggable1″ class=”ui-widget-content” style=”border-color: Green; height: 50px;”>
<p>Drag me around 1</p>
</div><br/>
<div id=”draggable2″ class=”ui-widget-content” style=”border-color: red;height: 150px;”>
<p>Drag me around 2</p>
</div><br/>
<div id=”draggable3″ class=”ui-widget-content” style=”border-color: Black;height: 100px;”>
<p>Drag me around 4</p>
</div><br/>
<div id=”draggable4″ class=”ui-widget-content” style=”border-color: blue;height: 50px;”>
<p>Drag me around 5</p>
</div>
</body>
</html>
</apex:page>

We have developed the feature for Drag And Drop Functionality using Visualforce Page. so kindly let us know if you have any query.

Result:-

We are the ISV Partners and Please reach us for custom development => www.merfantz.com

—————————- We Are Really Happy To Helping You!!!!!!!!!!! —————————–

 

Author Bio

Merfantz Editor
+ Recent Posts
  • August 4, 2023
    How to Setup CRM Analytics for Financial Services Cloud
  • August 2, 2023
    How to Get Started with Salesforce Hyperforce - Merfantz
  • July 28, 2023
    Health Cloud Mastery: Salesforce Trailhead for Effective Healthcare CRM
  • July 26, 2023
    How to integrate Data cloud and Marketing cloud In Salesforce
Tags: Field Service ManagementFieldax
  • Previous How to Redirect to Lightning Page from Visualforce Page
  • Next Include Bootstrap Using Visualfroce Page

Leave a Reply

You must be logged in to post a comment.

Merfantz Technologies is a leading Salesforce consulting firm dedicated to helping small and medium enterprises transform their operations and achieve their goals through the use of the Salesforce platform. Contact us today to learn more about our services and how we can help your business thrive.

Discover More

Terms and Conditions
Privacy Policy
Cancellation & Refund Policy

Contact Info

  • No 96, 2nd Floor, Greeta Tech Park, VSI Industrial Estate, Perungudi, Chennai 600 096, Tamil Nadu, INDIA
  • (+91) 44-49521562
  • [email protected]
  • 9:30 IST - 18:30 IST

Latest Posts

agile-salesforce-team-collaboration
Agile Development & Rapid Deployment: LaunchPad Lab’s Approach to Salesforce Implementation August 20, 2025
Building a Scalable Data Quality Framework for CRM Systems: Detecting and Resolving Data Issues at Scale August 19, 2025
data-driven-decision-making
Data-First Decision Making: Facet Interactive and Algoworks’ Best Practices for Salesforce Analytics August 13, 2025

Copyright @2023 Merfantz Technologies, All rights reserved