Creator Help

Javascript removal - Marketplace applications

Here, you will find instructions for replacing the javascript based solutions in some of the marketplace applications with alternative solutions.
For those applications that are not covered here, you will have to contact the concerned developers either through their email id in their profile or in case of no mail id use the 'Send Message' link in their profile. You can also contact our support (support@zohocreator.com) for help
The applications covered here are

  1. CRM
  2. Travel Tracker
  3. IT Asset Tracker
  4. Purchase Request
  5. Issue Manager
  6. Feature Tracker
  7. Customer Support
  8. Employee Manager

1).CRM by Hariharan
You have to make some simple repetitive modification in 5 forms.
First go to the edit mode of the application and follow the below steps one by one.
a).In 'New Product --> OnEdit:OnSuccess'
Select the form 'New Product' from the 'Form' list. Go to the script tab.
Select the 'OnEdit --> OnSuccess' script.
You will find an openurl task openUrl("javascript:window.location.reload()", "same window");
Convert it to openUrl("#Script:page.refresh", "same window");
Save the script.
b).In 'New Contact --> OnEdit:OnSuccess'
Mouse over the top level 'Form' tab and select the form 'New Contact' from the list. Select the script tab.
Select the 'OnEdit --> OnSuccess' script.
You will find an openurl task openUrl("javascript:window.location.reload()", "same window");
Convert it to openUrl("#Script:page.refresh", "same window");
Save the script.
c).In 'New Account --> OnEdit:OnSuccess'
Mouse over the top level 'Form' tab and select the form 'New Contact' from the list. Select the script tab.
Select the 'OnEdit --> OnSuccess' script.
You will find an openurl task openUrl("javascript:window.location.reload()", "same window");
Convert it to openUrl("#Script:page.refresh", "same window");
Save the script.
d).In 'New Potential --> OnEdit:OnSuccess'
Mouse over the top level 'Form' tab and select the form 'New Contact' from the list. Select the script tab.
Select the 'OnEdit --> OnSuccess' script.
You will find an openurl task openUrl("javascript:window.location.reload()", "same window");
Convert it to openUrl("#Script:page.refresh", "same window");
Save the script.
e).In 'New Lead --> OnEdit:OnSuccess'
Mouse over the top level 'Form' tab and select the form 'New Contact' from the list. Select the script tab.
Select the 'OnEdit --> OnSuccess' script.
You will find an openurl task openUrl("javascript:window.location.reload()", "same window");
Convert it to openUrl("#Script:page.refresh", "same window");
Save the script.

2) Travel Tracker by Rajesh
You have to make some simple repetitive modification in forms. I have highlighted the javascript snippets (red color) and the equivalent new snippets with out javascript (green color) . I also specified the actual place of the snippet have been used in the app. So that you can go to the place of the form and replace the old snippets by a new snippets and save the scripts.
Please refer this link to get the snippet changes of the application.

3) IT Asset Manager by Saran

To make changes, go to the edit mode of the IT Asset Manager application,

a).In 'Add New License'
Mouse over the top level 'Form' tab and select the form 'Add New License' from the list.
Mouse over on the 'More Details' field and click on the Edit this Field link and replace the content with the below content.
(("<a class='zc-formbutton' style='padding: 2px 8px;font-size:10px;' href='#View:alllicenses_fulldetails?ID=") + ID) + "&zc_LoadIn=dialog&zc_SecHeader=false'>More Details</a>"
And click 'Done' to save.

Select the script tab (Add New License)
Select the 'OnAdd --> OnLoad' script.
You will find,
input.addnewsoftware = (((("<div align='right' style='width:38%'><a href='javascript:void(0);' class='zc-edit-a' onclick=\"window.open('/" + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/addsoftware/isaddlicense=true','addsw_popup','resizable=0,width=426,height=250,left=' + ((window.screen.width - 426) / 2) + ',top='+ ((window.screen.height - 250) / 2)+'')\">[Add New Software]</a></div>";
Replace the above line with this,
input.addnewsoftware = "<a href='#Form:addsoftware?zc_LoadIn=dialog&amp;isaddlicense=true' class='zc-edit-a'>[Add New Software]</a>";
Save the script.
Select the 'OnEdit --> OnLoad' script.
You will find,
input.addnewsoftware = (((("<div align='right' style='width:58%'><a href='javascript:void(0);' class='zc-edit-a' onclick=\"window.open('/" + zoho.adminuser) + "/") + zoho.appname) + "/") + "form-embed/addsoftware','_blank','resizable=0,width=426,height=250,left=' + ((window.screen.width - 426) / 2) + ',top='+ ((window.screen.height - 250) / 2)+'')\">[Add New Software]</a></div>";
Replace the above line with this,
input.addnewsoftware = "<a href='#Form:addsoftware?zc_LoadIn=dialog' class='zc-edit-a'>[Add New Software]</a>";
Save the script.
b).In 'Add New Software --> OnAdd:OnSuccess'
Mouse over the top level 'Form' tab and select the form 'Add New License' from the list. Select the script tab.
Select the 'OnAdd --> OnSuccess' script.
You will find,
openUrl("javascript:window.close();window.opener.location.hash=\"#View:Softwares?header=Add License&isForm=true&linkName=addlicense&Software=" + input.Name + "&cfName=Software&cfValue=" + input.Name + "\";", "same window");
Replace the above line with this,
openUrl("#View:Softwares?header=Add License&isForm=true&linkName=addlicense&Software=" + input.Name + "&cfName=Software&cfValue=" + input.Name, "same window");
c).In 'Add New Machine'
Mouse over the top level 'Form' tab and select the form 'Add New Machine' from the list.
Mouse over on the 'More Details' field and click on the Edit this Field link and replace the content with the below content.
(("<a class='zc-formbutton' style='padding: 2px 8px;font-size:10px;' href='#View:allmachines_fulldetails?ID=") + ID) + "&zc_LoadIn=dialog&zc_SecHeader=false'>More Details</a>"
d).In 'All Licenses with FullDetails'
Mouse over the top level 'View' tab and select the view 'All Licenses with FullDetails' from the list.
Select the 'Display Properties' (placed at left-hand side) and select 'Summary' as display type and click 'Done' to save.
e).In 'All Machines with FullDetails'
Mouse over the top level 'View' tab and select the view 'All Machines with FullDetails' from the list.
Select the 'Display Properties' (placed at left-hand side) and select 'Summary' as display type and click 'Done' to save.

4) Purchase Request by Karuppuchamy

To make changes, go to the edit mode of the Purchase Request application,

1. Click on the Form tab --> Purchase Request Form

a)Mouse over on the Approve_Reject field and click on the Edit this Field link and replace the content with the below content.

"<a class='zc-formbutton' href='#Form:Approve?zc_LoadIn=dialog&Request_ID=" + ID + "' >Approve/Reject</a>"

b)Mouse over on the Change_Status_to_Pending field and click on the Edit this Field link and replace the content with the below content.

"<a class='zc-formbutton' href='#Form:Status_Change?zc_LoadIn=dialog&Request_ID=" + ID + "&Status=Pending&isRequest=true' >Change to Pending</a>"

c)Mouse over on the Ordered field and click on the Edit this Field link and replace the content with the below content.

"<a class='zc-formbutton' href='#Form:Status_Change?zc_LoadIn=dialog&Request_ID=" + ID + "&Status=Ordered&isRequest=false' >Change to Ordered</a>"

d)Mouse over on the Closed field and click on the Edit this Field link and replace the content with the below content.

"<a class='zc-formbutton' href='#Form:Status_Change?zc_LoadIn=dialog&Request_ID=" + ID + "&Status=Closed&isRequest=false' >Change to Closed</a>"

e)Mouse over on the Change_to_Pending field and click on the Edit this Field link and replace the content with the below content.

"<a class='zc-formbutton' href='#Form:Status_Change?zc_LoadIn=dialog&Request_ID=" + ID + "&Status=Pending&isRequest=false'>Change to Pending</a>"

f)Mouse over on the MoreDetails field and click on the Edit this Field link and replace the content with the below content.

"<div style='float: right;'><a class='zc-formbutton' href='#View:More_Details?RequestID=" + ID + "'>More Details</a></div>"

2. Click on the Form tab --> Add New User

a)Mouse over on the Activate_DeActivate field and click on the Edit this Field link and replace the content with the below content.

"<div class='zc-formbutton' style='float: right; text-align: center; width: 70px;'><a class='zc-formbutton' style='padding:0px;border:0px' href='#Form:Activate_DeActivate?zc_LoadIn=dialog&ReqID=" + ID + "&Status=" + statusText + "'>" + statusText + "</a></div>"

3. Click on Form tab --> Status Change and then go to the Script tab Yes -> On Click

a)You will find an openurl task openUrl("javascript:window.close();window.opener.location.reload();", "same window");

Convert it to openUrl("#Script:page.back", "same window");

b)You will find an openurl task openUrl("javascript:window.close()", "same window");

Convert it to openUrl("#Script:page.back", "same window");

No -> On Click

a)You will find an openurl task openUrl("javascript:window.close()", "same window");

Convert it to openUrl("#Script:page.back", "same window");

4. Click on Form tab --> Activate/DeActivate and then go to the Script tab
Yes -> On Click

Remove the below lines,

a)rec.Activate_DeActivate = ((((((((("<div class='zc-formbutton' style='float: right; text-align: center; width: 70px;'><a class='zc-formbutton' style='padding:0px;border:0px' onclick=\"window.open('/" + zoho.adminuser) + "/") + zoho.appname) + "/form-embed/Activate_DeActivate/&ReqID=") + rec.ID) + "&Status=") + rec.statusText) + "','_blank','resizable=0,width=250,height= 150,left=' + ((window.screen.width - 250) / 2) + ',top='+ ((window.screen.height - 150) / 2)+'' )\" href='javascript:void(0);' >") + rec.statusText) + "</a></div>";

b)rec.Activate_DeActivate = ((((((((("<div class='zc-formbutton' style='float: right; text-align: center; width: 70px;'><a class='zc-formbutton' style='padding:0px;border:0px' onclick=\"window.open('/" + zoho.adminuser) + "/") + zoho.appname) + "/form-embed/Activate_DeActivate/&ReqID=") + rec.ID) + "&Status=") + rec.statusText) + "','_blank','resizable=0,width=250,height= 150,left=' + ((window.screen.width - 250) / 2) + ',top='+ ((window.screen.height - 150) / 2)+'' )\" href='javascript:void(0);' >") + rec.statusText) + "</a></div>";

c)You will find an openurl task openUrl("javascript:window.close();window.opener.location.reload();", "same window");

Convert it to openUrl("#View:User1", "same window");

No -> On Click

a)You will find an openurl task openUrl("javascript:window.close()", "same window");

Convert it to openUrl("#View:User1", "same window");

5. Click on Form tab --> Approve and then go to the Script tab
Approve -> On Click

a)You will find an openurl task openUrl("javascript:window.close();window.opener.location.reload();", "same window");

Convert it to openUrl("#View:Pending_Requests", "same window");

Reject -> On Click

a)You will find an openurl task openUrl("javascript:window.close();window.opener.location.reload();", "same window");

Convert it to openUrl("#View:Pending_Requests", "same window");

6. Click on the View tab --> More Details

a)You will find <%=backurl%>

Convert it to Script:page.back

5). Issue Manager By Inulhuq
You have to make some simple repetitive modification in forms. I have highlighted the javascript snippets (red color) and the equivalent new snippets with out javascript (blue color) . I also specified the actual place of the snippet have been used in the app. So that you can go to the place of the form and replace the old snippets by a new snippets and save the scripts. Click here to see the snippets that has to be changed.

6).Feature Tracker By Inulhuq
You have to make some simple repetitive modification in forms. I have highlighted the javascript snippets (red color) and the equivalent new snippets with out javascript (blue color) . I also specified the actual place of the snippet have been used in the app. So that you can go to the place of the form and replace the old snippets by a new snippets and save the scripts. Click here to see the snippets that has to be changed.

7) Customer Support by Maheelekha

You have to make some simple changes in New Request Form.
First go to the edit mode of the Customer Support application
a) In 'New Request' form - "More_Details" field

* Select the form "New Request" from the Form list.
* Mouse over on the 'More_Details' field and click on the Edit this Field and replace the content with the below content.
(("<a class='zc-formbutton' style='padding: 2px 8px;font-size:10px;' href='#View:More_Details_Html_View?ticketID=") + Ticket_ID) + "&backurl=#Script:page.back\"'>More Details</a>"

* And click "Done" to save.
b) In 'New Request' form - "Assign_Owner" field
* Select the form "New Request" from the Form list.
* Mouse over on the 'Assign_Owner' field and click on the Edit this Field and replace the content with the below content.
(("<a class='zc-formbutton' style='padding: 2px 8px;font-size:10px;' href= '#Form:Dummy_Form?recID=") + ID) + "&backurl=Script:page.back'>Assign</a>"
* And Click "Done" to save.

8) Employee Manager by Muthu

Go to the Edit mode of the application and follow the below procedure.
Search Form Changes :
1. Go to the 'Search Form'.
2. Delete the plain text field 'Search'.
3. Add a new button 'Go' by clicking on Add Button.
4. Click on 'Actions on Click 'in the added new button and write the below script and save it.
openUrl((((("/" + zoho.adminuser) + "/") + zoho.appname) + "/#View:Employee_Search?searchParam=") + input.srchParam, "same window");
Add Employee Form changes :
1. Go to the 'Add Employee' form.
2. Click on the formula field 'Name'.
3. You can find the below code snippet in that field.
(((((((("<a style='padding: 2px 8px;font-size:10px;' href='javascript:void(0);' onclick='window.location.hash=\"#View:Employee_Details?Employee=") + First_Name) + " ") + Last_Name) + "-") + Employee_Id) + "&backurl=\"+window.location.hash+\"\"'>") + First_Name) + "</a>"
4. Convert it to the below code snippet. In this 'window.location.hash' in the href attribute has been removed and for back url it has been replaced with #Script:page.back .
(((((((("<a style='padding: 2px 8px;font-size:10px;' href='#View:Employee_Details?Employee=") + First_Name) + " ") + Last_Name) + "-") + Employee_Id) + "&backurl=#Script:page.back'>") + First_Name) + "</a>"

Top