# More Editor Widgets Types

**URL:** <https://forum.sambapos.com/t/more-editor-widgets-types/10434>\
**Category:** V5 Request\
**Created:** [April 20, 2016, 2:12pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434 "2016-04-20T14:12:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [April 20, 2016, 2:12pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/1 "2016-04-20T14:12:56Z")

</div>

Hello @emre

Just in case you were considering adding more power to Custom Screens I would like to put a request in for some more useful Widgets:

1. Checkbox Widget - returning 0 or 1
2. Radio Buttons or Option Buttons - returning Option Number
3. Combo Box - returning either Combo List Number or Combo Value

**SAMPLE WIDGETS:**

![](https://forum.sambapos.com/uploads/default/original/3X/f/0/f0cd6d748080efea2922601ff6454cda3aaf4af8.jpg)

**Rationale:**  
All these Widgets are still “Touch Screen” friendly.  
When I was building Custom Inventory Screens I found the need for a “Yes/No” answer or “On/Off” value. In SambaPOS now the User would need to Enter these actually words in a Editor Widget or Use “Command Widget” cycle through.

I am considering building a new “Customer Payment Screen” with more options to control the flow of how the payment is applied. Therefore I would like to **redesign this screen below** a little more.

 ![](https://forum.sambapos.com/uploads/default/original/3X/a/d/adbf4aa32601660bbe353c22cb9c3ae335c54786.JPG)

It may be possible now, but the visual screen layout would seem a little cumbersome.  
Thanks for considering.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 20, 2016, 2:20pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/2 "2016-04-20T14:20:15Z")

</div>

It is also possible to build all of that in html and use the HTML Widget. Your buttons, boxes, etc could fire automation commands or store settings etc. You can also simulate those with command buttons even making them appear rounded using corner radius setting.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 20, 2016, 2:23pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/3 "2016-04-20T14:23:18Z")

</div>

> [@pauln](#):
>
> When I was building Custom Inventory Screens I found the need for a “Yes/No” answer or “On/Off” value. In SambaPOS now the User would need to Enter these actually words in a Editor Widget or Use “Command Widget” cycle through.

Or you can program the ask question popup to handle yes,no

---

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [April 20, 2016, 2:24pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/4 "2016-04-20T14:24:24Z")

</div>

Ok - have you built many screens using the HTML Widget? I must admit just another Language I very raw on 😫

So the next question does anybody have any suggestions on a HTML Screen Builder Tool we could use to built HTML Widgets in SambaPOS?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 20, 2016, 2:24pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/5 "2016-04-20T14:24:59Z")

</div>

> [@pauln](#):
>
> I am considering building a new “Customer Payment Screen” with more options to control the flow of how the payment is applied. Therefore I would like to redesign this screen below a little more.

That screen would be very simple to make. Save, Print, Cancel would be automation buttons, All the descriptions and even the returned value would be Label Widgets and the entry boxes are editor widgets. Finally you just insert a custom keyboard at bottom.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 20, 2016, 2:26pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/6 "2016-04-20T14:26:43Z")

</div>

> [@pauln](#):
>
> So the next question does anybody have any suggestions on a HTML Screen Builder Tool we could use to built HTML Widgets in SambaPOS?

Is that a real question or are you trying to prove a point? 😛 No I have not built very many just a few but I know the capability is there and it would be great to see someone try and use it.

What I meant was your entire screen would be a HTML page with elements inside the page triggering the events. Its possible based on past discussions me and Q had way back when invoke script inject script were introduced.

---

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [April 20, 2016, 2:30pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/7 "2016-04-20T14:30:10Z")

</div>

That would be a 'Custom Entity Screen" right? Yes I agree I could probably build that now and as you said use Prompt for Yes/No data.

Oh sorry was a real question, just did not know how flexible a HTML widget could become inside of SambaPOS…

I definitely interested in using HTML (and a builder) because the next request from my team will be Lines & Graphics. Is there a model built on a working page somewhere? I did read that post using Document Model I think but was out of my understanding at that stage.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [April 20, 2016, 2:31pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/8 "2016-04-20T14:31:59Z")

</div>

I typically just use notepad or notepadd++ for html

I cant dig up the post just yet but me and q both experimented with invoke, and inject script functions.

---

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [April 20, 2016, 2:35pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/9 "2016-04-20T14:35:59Z")

</div>

umm Yes just been Googling “HTML Checkbox Value” and it seems the mighty JScript is involved to get the value!

So the key would be to understand how inject & invoke worked? Are these Samba or Jscript?

I dunno kendash, there is a lot of coding required, I reckon a few more _itsy bitsy widgets_ might be easier 😄

**REFERENCES:**

> [@Help understanding Scripting in HTML Viewer Widget?](https://forum.sambapos.com/t/help-understanding-scripting-in-html-viewer-widget/2856/15):
>
> Just to give people a head-start to doing things with Javascript… When it comes to Javascript in a Webpage, we basically have 3 layers: Window (the HTML portion of the page) Document (DOM - Document Object Model) Javascript It’s important to know which layer (or Object) you are trying to affect, because different types of Objects have different Methods and Properties. Take the following code for example: window.location.href = 'http://localhost/?screen=PURCHASE'; document.body.style.backg…

> [@How to link a product to a button automation in the entity screen](https://forum.sambapos.com/t/how-to-link-a-product-to-a-button-automation-in-the-entity-screen/6135/5):
>
> Yes a little advanced but inside HTML Viewer Widget we can access few SambaPOS functions. Enabling widget’s Scriptable setting will enable this feature. Example HTML File Displays in HTML Viewer Clicking Click Me button executes automation command. Rule Setup I hope you’ll be able to connect pieces. PS: @QMcKay sorry for publishing your wifi password. still working on your setup wink

> [@Help is needed with Set Widget Value action](https://forum.sambapos.com/t/help-is-needed-with-set-widget-value-action/2789/79):
>
> Update: I’ve also added basic support for parameters so we’ll be able to pass values into scripts. it accepts color parameter. and we add parameter like that. I think we’ll be able to use printing tags here. It changes to blue. @QMcKay Thank you very much for the inspiration. I can imagine how we’ll be able to improve that to create amazing integrations.

Ok it all in one place now!

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [April 20, 2016, 4:34pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/10 "2016-04-20T16:34:48Z")

</div>

I’m seriously considering releasing a blank page as the SambaPOS V6 UI.

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [April 20, 2016, 4:51pm UTC](https://forum.sambapos.com/t/more-editor-widgets-types/10434/11 "2016-04-20T16:51:28Z")

</div>

Haha a blank page with loads of widgets we can just add to the screen to build a totally custom pos
