SlideShare a Scribd company logo
One	
  App	
  Cloud	
  –	
  How	
  to	
  Guide	
  
	
  
	
  
How to use custom CSS in a form?

The form designer “Embed CSS” option provides web developers the ability
to override css styles and add custom styles to a form. To change the
styles follow the steps below:

Go to edit form and then go to form settings in left panel of form designer.




                                                                        	
  
Once	
  your	
  form	
  is	
  ready	
  with	
  the	
  controls	
  save	
  it	
  and	
  apply	
  CSS.	
  You	
  will	
  see	
  the	
  
changes	
  reflect	
  at	
  run	
  time.	
  

1. Applying	
  style	
  on	
  whole	
  form	
  body:	
  

.formBodyStyle{	
  

font-­‐size:11px;	
  

font-­‐family:	
  verdana;	
  

}	
  

                                                http://www.oneappcloud.com	
  
One	
  App	
  Cloud	
  –	
  How	
  to	
  Guide	
  
	
  
	
  
2. Applying	
  style	
  on	
  form	
  heading	
  and	
  description:	
  

.formHeadingStyle	
  <<Heading	
  selected	
  in	
  settings	
  i.e.	
  h1/h2/h3>>{	
  

	
          color:	
  red;	
  

}	
  

.formDescriptionStyle{	
  

	
          font-­‐weight:	
  bold;	
  

}	
  

3. Applying	
  style	
  on	
  input	
  fields	
  like	
  text	
  field,	
  dropdowns	
  and	
  other	
  input	
  field	
  
   for	
  radio	
  and	
  checkbox:	
  
.uniForm	
  select.textInput,	
  .uniForm	
  input.textInput,	
  #<<field’s	
  uniqueId>>othertext{	
  

border-­‐radius:0;	
  

box-­‐shadow:0	
  0	
  0	
  0;	
  

width:200px;	
  

}	
  

4. Applying	
  style	
  on	
  controls	
  to	
  make	
  them	
  look	
  different	
  in	
  whole	
  form:	
  

#<<field’s	
  uniqueId>>ControlHolder	
  .textInput{	
  

width:300px;	
  

}	
  

5. Applying	
  style	
  on	
  composite	
  controls	
  like	
  address,	
  name	
  and	
  date	
  when	
  not	
  
   showing	
  calendar:	
  

#<<field’s	
  uniqueId>>ControlHolder	
  input[type='text']{	
  

box-­‐shadow:0	
  0	
  0	
  0;	
  

border-­‐radius:0;	
  

}	
  

                                               http://www.oneappcloud.com	
  
One	
  App	
  Cloud	
  –	
  How	
  to	
  Guide	
  
	
  
	
  
How to provide custom JavaScript validation for a form ?

In	
  designer	
  view,	
  in	
  form	
  settings	
  tab	
  you	
  can	
  see	
  Embed	
  JavaScript	
  block.	
  In	
  this	
  
you	
  are	
  given	
  a	
  function	
  beforeSubmit().	
  You	
  have	
  to	
  write	
  you	
  validation	
  code	
  in	
  
this	
  function.	
  If	
  this	
  function	
  returns	
  false,	
  the	
  form	
  is	
  not	
  submitted.	
  And	
  if	
  the	
  
function	
   is	
   not	
   declared,	
   form	
   will	
   be	
   submitted	
   normally.	
   If	
   you	
   are	
   getting	
   a	
  
value	
  from	
  a	
  field,	
  its	
  will	
  be	
  a	
  string.	
  For	
  numeric	
  and	
  date	
  type	
  validations,	
  you	
  
will	
  have	
  to	
  convert	
  it	
  accordingly	
  for	
  validation	
  purposes.	
  

	
  

Below	
  are	
  the	
  guidelines	
  on	
  how	
  to	
  write	
  the	
  validation	
  code:	
  

Getting	
  value	
  of	
  a	
  field	
  like	
  Single	
  Line	
  Text,	
  Multi	
  Line	
  Text,	
  Number,	
  Date	
  and	
  
Select:	
  
$(‘#<<field’s	
  uniqueId>>’).val()	
  

	
  

Getting	
  value	
  of	
  composite	
  fields	
  like	
  Address	
  and	
  Name:	
  

Address	
  Line1:	
  $(‘#<<field’s	
  uniqueId>>_line1’).val()	
  

Address	
  Line2:	
  $(‘#<<field’s	
  uniqueId>>_line2’).val()	
  

Address	
  City:	
  $(‘#<<field’s	
  uniqueId>>_city’).val()	
  

Address	
  State:	
  $(‘#<<field’s	
  uniqueId>>_state’).val()	
  

Address	
  Zip:	
  $(‘#<<field’s	
  uniqueId>>_zip’).val()	
  

Address	
  Country:	
  $(‘#<<field’s	
  uniqueId>>_country’).val()	
  

	
  

Name	
  Prefix:	
  $(‘#<<field’s	
  uniqueId>>pre’).val()	
  

Name	
  First	
  Name:	
  $(‘#<<field’s	
  uniqueId>>fn’).val()	
  


                                               http://www.oneappcloud.com	
  
One	
  App	
  Cloud	
  –	
  How	
  to	
  Guide	
  
	
  
	
  
Name	
  Middle	
  Name:	
  $(‘#<<field’s	
  uniqueId>>mn’).val()	
  

Name	
  Last	
  Name:	
  $(‘#<<field’s	
  uniqueId>>ln).val()	
  

	
  

Validating	
  checkbox	
  and	
  radio	
  buttons:	
  

Getting	
  checkbox/radio	
  button:	
  

$(‘#<<field’s	
  uniqueId>><<index	
  in	
  current	
  control	
  starting	
  from	
  0>>).attr(‘checked’)	
  

It	
  will	
  return	
  true	
  if	
  the	
  checkbox/radio	
  button	
  is	
  checked	
  otherwise	
  will	
  return	
  
false;	
  

For	
  other	
  value	
  in	
  checkbox/radio	
  button:	
  

$(‘#<<field’s	
  uniqueId>>othertext).val()	
                                	
  

Validations	
  on	
  date’s	
  time	
  values:	
  

$(‘.hours’,$(‘#<<field’s	
  uniqueId>>ControlHolder’)).val()	
  will	
  give	
  you	
  hours’	
  value	
  

$(‘.minutes’,$(‘#<<field’s	
  uniqueId>>	
  ControlHolder’)).val()	
  will	
  give	
  you	
  minutes’	
  value	
  

$(‘.meridian’,$(‘#<<field’s	
  uniqueId>>	
  ControlHolder’)).val()	
  will	
  give	
  you	
  meridian’	
  value	
  

Here	
  is	
  an	
  example	
  of	
  a	
  complete	
  implementation	
  of	
  a	
  custom	
  JavaScript	
  
validation	
  code	
  for	
  a	
  form	
  –	
  
function	
  beforeSubmit(){	
  

	
  	
  	
  //code	
  for	
  validation	
  before	
  save	
  

	
  	
  	
  if($('#field1356404214494').val()	
  <	
  $('#field1356404254141').val()){	
  

	
  	
  	
  	
  	
  	
  	
  alert('Leave	
  request	
  can	
  not	
  be	
  more	
  than	
  leave	
  leave	
  balance	
  available);	
  

	
  	
  	
  	
  	
  	
  	
  return	
  false;	
  

	
  	
  	
  }	
  

	
  	
  	
  return	
  true;}	
  


                                                             http://www.oneappcloud.com	
  

More Related Content

Similar to One App Cloud - Custom CSS and Javascript

Asp.net mvc training
Asp.net mvc trainingAsp.net mvc training
Asp.net mvc training
icubesystem
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
CK Yang
 
Jasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-casJasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-cas
ellentuck
 
The new form framework
The new form frameworkThe new form framework
The new form framework
Bernhard Schussek
 
Angular data binding by Soft Solutions4U
Angular data binding by Soft Solutions4UAngular data binding by Soft Solutions4U
Angular data binding by Soft Solutions4U
sharsen
 
Hello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdfHello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdf
absgroup9793
 
Week 8
Week 8Week 8
Week 8
A VD
 
Javascript
JavascriptJavascript
Javascript
D V BHASKAR REDDY
 
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Thomas Lee
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
Sencha
 
Hidden Docs in Angular
Hidden Docs in AngularHidden Docs in Angular
Hidden Docs in Angular
Yadong Xie
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
SudhanshiBakre1
 
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014
Ran Wahle
 
Hexagonal architecture
Hexagonal architectureHexagonal architecture
Hexagonal architecture
Alessandro Minoccheri
 
Laravel 8 export data as excel file with example
Laravel 8 export data as excel file with exampleLaravel 8 export data as excel file with example
Laravel 8 export data as excel file with example
Katy Slemon
 
Working With The Symfony Admin Generator
Working With The Symfony Admin GeneratorWorking With The Symfony Admin Generator
Working With The Symfony Admin Generator
John Cleveley
 
Already given code from 4 files- 1-app-ctrl-js code- -- include expres.pdf
Already given code from 4 files- 1-app-ctrl-js code- -- include expres.pdfAlready given code from 4 files- 1-app-ctrl-js code- -- include expres.pdf
Already given code from 4 files- 1-app-ctrl-js code- -- include expres.pdf
as1mobiles
 
How to Build Dynamic Forms in Angular Directive with a Backend
How to Build Dynamic Forms in Angular Directive with a BackendHow to Build Dynamic Forms in Angular Directive with a Backend
How to Build Dynamic Forms in Angular Directive with a Backend
Backand Cohen
 
Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...
Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...
Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...
BizTalk360
 
Filters in AngularJS
Filters in AngularJSFilters in AngularJS
Filters in AngularJS
Brajesh Yadav
 

Similar to One App Cloud - Custom CSS and Javascript (20)

Asp.net mvc training
Asp.net mvc trainingAsp.net mvc training
Asp.net mvc training
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
 
Jasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-casJasigsakai12 columbia-customizes-cas
Jasigsakai12 columbia-customizes-cas
 
The new form framework
The new form frameworkThe new form framework
The new form framework
 
Angular data binding by Soft Solutions4U
Angular data binding by Soft Solutions4UAngular data binding by Soft Solutions4U
Angular data binding by Soft Solutions4U
 
Hello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdfHello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdf
 
Week 8
Week 8Week 8
Week 8
 
Javascript
JavascriptJavascript
Javascript
 
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
 
Hidden Docs in Angular
Hidden Docs in AngularHidden Docs in Angular
Hidden Docs in Angular
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
 
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014
 
Hexagonal architecture
Hexagonal architectureHexagonal architecture
Hexagonal architecture
 
Laravel 8 export data as excel file with example
Laravel 8 export data as excel file with exampleLaravel 8 export data as excel file with example
Laravel 8 export data as excel file with example
 
Working With The Symfony Admin Generator
Working With The Symfony Admin GeneratorWorking With The Symfony Admin Generator
Working With The Symfony Admin Generator
 
Already given code from 4 files- 1-app-ctrl-js code- -- include expres.pdf
Already given code from 4 files- 1-app-ctrl-js code- -- include expres.pdfAlready given code from 4 files- 1-app-ctrl-js code- -- include expres.pdf
Already given code from 4 files- 1-app-ctrl-js code- -- include expres.pdf
 
How to Build Dynamic Forms in Angular Directive with a Backend
How to Build Dynamic Forms in Angular Directive with a BackendHow to Build Dynamic Forms in Angular Directive with a Backend
How to Build Dynamic Forms in Angular Directive with a Backend
 
Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...
Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...
Use Windows Azure Service Bus, BizTalk Services, Mobile Services, and BizTalk...
 
Filters in AngularJS
Filters in AngularJSFilters in AngularJS
Filters in AngularJS
 

More from One App Cloud

One app cloud - Form Templates
One app cloud - Form TemplatesOne app cloud - Form Templates
One app cloud - Form Templates
One App Cloud
 
One App Cloud - Lead management
One App Cloud - Lead managementOne App Cloud - Lead management
One App Cloud - Lead management
One App Cloud
 
Expense Reporting with One App Cloud
Expense Reporting with One App CloudExpense Reporting with One App Cloud
Expense Reporting with One App Cloud
One App Cloud
 
One App Cloud - Features
One App Cloud - FeaturesOne App Cloud - Features
One App Cloud - Features
One App Cloud
 
One App Cloud - Faculty Feedback Form
One App Cloud - Faculty Feedback FormOne App Cloud - Faculty Feedback Form
One App Cloud - Faculty Feedback Form
One App Cloud
 
One App Cloud - Overview
One App Cloud - OverviewOne App Cloud - Overview
One App Cloud - Overview
One App Cloud
 
Cloud Computing For Enterprises
Cloud Computing For EnterprisesCloud Computing For Enterprises
Cloud Computing For Enterprises
One App Cloud
 

More from One App Cloud (7)

One app cloud - Form Templates
One app cloud - Form TemplatesOne app cloud - Form Templates
One app cloud - Form Templates
 
One App Cloud - Lead management
One App Cloud - Lead managementOne App Cloud - Lead management
One App Cloud - Lead management
 
Expense Reporting with One App Cloud
Expense Reporting with One App CloudExpense Reporting with One App Cloud
Expense Reporting with One App Cloud
 
One App Cloud - Features
One App Cloud - FeaturesOne App Cloud - Features
One App Cloud - Features
 
One App Cloud - Faculty Feedback Form
One App Cloud - Faculty Feedback FormOne App Cloud - Faculty Feedback Form
One App Cloud - Faculty Feedback Form
 
One App Cloud - Overview
One App Cloud - OverviewOne App Cloud - Overview
One App Cloud - Overview
 
Cloud Computing For Enterprises
Cloud Computing For EnterprisesCloud Computing For Enterprises
Cloud Computing For Enterprises
 

Recently uploaded

Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
Pravash Chandra Das
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 

Recently uploaded (20)

Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 

One App Cloud - Custom CSS and Javascript

  • 1. One  App  Cloud  –  How  to  Guide       How to use custom CSS in a form? The form designer “Embed CSS” option provides web developers the ability to override css styles and add custom styles to a form. To change the styles follow the steps below: Go to edit form and then go to form settings in left panel of form designer.   Once  your  form  is  ready  with  the  controls  save  it  and  apply  CSS.  You  will  see  the   changes  reflect  at  run  time.   1. Applying  style  on  whole  form  body:   .formBodyStyle{   font-­‐size:11px;   font-­‐family:  verdana;   }   http://www.oneappcloud.com  
  • 2. One  App  Cloud  –  How  to  Guide       2. Applying  style  on  form  heading  and  description:   .formHeadingStyle  <<Heading  selected  in  settings  i.e.  h1/h2/h3>>{     color:  red;   }   .formDescriptionStyle{     font-­‐weight:  bold;   }   3. Applying  style  on  input  fields  like  text  field,  dropdowns  and  other  input  field   for  radio  and  checkbox:   .uniForm  select.textInput,  .uniForm  input.textInput,  #<<field’s  uniqueId>>othertext{   border-­‐radius:0;   box-­‐shadow:0  0  0  0;   width:200px;   }   4. Applying  style  on  controls  to  make  them  look  different  in  whole  form:   #<<field’s  uniqueId>>ControlHolder  .textInput{   width:300px;   }   5. Applying  style  on  composite  controls  like  address,  name  and  date  when  not   showing  calendar:   #<<field’s  uniqueId>>ControlHolder  input[type='text']{   box-­‐shadow:0  0  0  0;   border-­‐radius:0;   }   http://www.oneappcloud.com  
  • 3. One  App  Cloud  –  How  to  Guide       How to provide custom JavaScript validation for a form ? In  designer  view,  in  form  settings  tab  you  can  see  Embed  JavaScript  block.  In  this   you  are  given  a  function  beforeSubmit().  You  have  to  write  you  validation  code  in   this  function.  If  this  function  returns  false,  the  form  is  not  submitted.  And  if  the   function   is   not   declared,   form   will   be   submitted   normally.   If   you   are   getting   a   value  from  a  field,  its  will  be  a  string.  For  numeric  and  date  type  validations,  you   will  have  to  convert  it  accordingly  for  validation  purposes.     Below  are  the  guidelines  on  how  to  write  the  validation  code:   Getting  value  of  a  field  like  Single  Line  Text,  Multi  Line  Text,  Number,  Date  and   Select:   $(‘#<<field’s  uniqueId>>’).val()     Getting  value  of  composite  fields  like  Address  and  Name:   Address  Line1:  $(‘#<<field’s  uniqueId>>_line1’).val()   Address  Line2:  $(‘#<<field’s  uniqueId>>_line2’).val()   Address  City:  $(‘#<<field’s  uniqueId>>_city’).val()   Address  State:  $(‘#<<field’s  uniqueId>>_state’).val()   Address  Zip:  $(‘#<<field’s  uniqueId>>_zip’).val()   Address  Country:  $(‘#<<field’s  uniqueId>>_country’).val()     Name  Prefix:  $(‘#<<field’s  uniqueId>>pre’).val()   Name  First  Name:  $(‘#<<field’s  uniqueId>>fn’).val()   http://www.oneappcloud.com  
  • 4. One  App  Cloud  –  How  to  Guide       Name  Middle  Name:  $(‘#<<field’s  uniqueId>>mn’).val()   Name  Last  Name:  $(‘#<<field’s  uniqueId>>ln).val()     Validating  checkbox  and  radio  buttons:   Getting  checkbox/radio  button:   $(‘#<<field’s  uniqueId>><<index  in  current  control  starting  from  0>>).attr(‘checked’)   It  will  return  true  if  the  checkbox/radio  button  is  checked  otherwise  will  return   false;   For  other  value  in  checkbox/radio  button:   $(‘#<<field’s  uniqueId>>othertext).val()     Validations  on  date’s  time  values:   $(‘.hours’,$(‘#<<field’s  uniqueId>>ControlHolder’)).val()  will  give  you  hours’  value   $(‘.minutes’,$(‘#<<field’s  uniqueId>>  ControlHolder’)).val()  will  give  you  minutes’  value   $(‘.meridian’,$(‘#<<field’s  uniqueId>>  ControlHolder’)).val()  will  give  you  meridian’  value   Here  is  an  example  of  a  complete  implementation  of  a  custom  JavaScript   validation  code  for  a  form  –   function  beforeSubmit(){        //code  for  validation  before  save        if($('#field1356404214494').val()  <  $('#field1356404254141').val()){                alert('Leave  request  can  not  be  more  than  leave  leave  balance  available);                return  false;        }        return  true;}   http://www.oneappcloud.com