Zoho Creator

Custom Search Button using HTML Snippets


Zoho Creator Create Page and search option to find the result from the report. For these please use the Form Method and pass url with parametters in the form action

HTML snippets can be use in the Page to run PHP type functionality. So when the button is clicked then form action URL will be open.

<%{
	CUST = Customers[Email == zoho.loginuserid];
	dateyesterday = zoho.currentdate.subDay(1);
	newDate = zoho.currentdate.subweek(1);
	tyredetail = Items[ID != 0];

form style="float: left; width: 100%; text-align: center;" action="...bass-url/owner_Name/app_name/page-perma/Form_Name" method="get">
div class="div1" style="float: left; width: 100%;">Search for Tyre Size [For Example, 2055516 / 19515]

input id="Tyre_Size" style="float: left; height: 32px; font-size: 18px; position: relative; text-align: center; margin-top: 10px; width: 40%;" name="Tyre_Size" type="text" />
div class="div2" style="float: left; margin-top: 20px; width: 100%;">Brand Name [For Example Centara]

input id="Brand_Name" style="float: left; height: 32px; font-size: 18px; position: relative; text-align: center; margin-top: 10px; width: 40%;" name="Brand_Name" type="text" />

input style="padding: 8px; margin-top: 40px; margin-bottom: 40px; width: 40%; background: #FF4C2F; color: #fff; font-size: 18px;" type="submit" value="Find Tyres" /> 
<% }%>;

Leave a Comment