Jump to content
  • 0

Text field Alignment



2 answers to this question

Recommended Posts

  • 1

Hello @chikaminute,

Hello @chikaminute,

Instead of using the actual fields, add HTML block next to your Radio Button field and place the code below. This is where your user will input the values for your two fields then you need to hide the two original fields.

<label>Status</label> <input class="cbFormTextField" id="InsertRecordcopyStatus" maxlength="255" name="InsertRecordStatuss" size="25" type="text" value="" /><br />
<br />
<label>Phone</label> <input class="cbFormTextField" id="InsertRecordcopyPhone" maxlength="255" name="InsertRecordPhones" size="25" type="text" value="" />


Insert Header/Footer block and disable HTML editor and place this code in the Footer section. Make sure to change the names of the example fields to the name of your fields.

<script type="text/javascript">

document.addEventListener("input", function(){

var src = document.querySelector('[id*=InsertRecordcopyStatus]');
var dest = document.querySelector('[id*=InsertRecordStatus]');

var src2 = document.querySelector('[id*=InsertRecordcopyPhone]');
var dest2 = document.querySelector('[id*=InsertRecordPhone]');
dest.value = src.value;
dest2.value = src2.value;


This will allow you to show both of the fields in the same div block instead of the normal, automatically-generated, separate div blocks by Caspio.
Please refer to the screenshot for the output:
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...