Support > Forums > OpenBots Studio > HTML placeholder and Required input field

HTML placeholder and Required input field

Chantha HUY

  • Reporter
  • Calender Icon September 01,2023 at 1:24 AM

  1. How do I add a validation required input field to an HTML form and show a placeholder in OpenBots Studio?
  2. We would like to understand why the Command Native Browser Legacy Set Text input type "Simulate Input" doesn’t work ?

This forum has 314 topics, 681 replies, and was last updated 20 days ago by Support Agent

Nataly Alvarado...

  • Participant
  • Calender Icon September 01,2023 at 5:04 PM

Hi Chantha HUY,

Question 1: How to Add a Validation-Required Input Field with a Placeholder in an HTML Form in OpenBots Studio

The HMTL Input command builds the desired form using HTML form format. To add a default value, you would follow the standard HTML syntax, in this case you can use the attribute value="default value". Please check the following code example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_value

In this case, setting the form value as required is not possible, since the variables are already initialized at runtime. However, you can add conditional logic based on empty/null values to let the user know that fields are missing or prompt to enter information again.

Additionally, if you need more robust form creation and design, I would recommend checking OpenBots Business Apps. This OpenBots platform allows you to design and host web forms that can be integrated with your automations, using a low code structure This platform is included with your OpenBots Cloud Server trial subscription.

Check following links for reference:

https://openbots.ai/openbots-sites-forms/ https://www.youtube.com/watch?v=e-iKK4a2Mxk&t=1070s

  1. We would like to understand why the Command Native Browser Legacy Set Text input type "Simulate Input" doesn’t work ?

Note that certain websites/html elements do not support simulate integration. Due to this, Studio offers simulate and manual modes to interact with web elements. Simulate commands send the action through a background processing, while manual actions move the mouse physically to the element.

You are not authorized to reply, please click here to login and add your reply to this topic.