Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Adaptive Form Components Customization problem

Balu_M
Level 3
Level 3

Hi, 

How can we customize guidetextbox component with out breaking existing functionality,We need change only appearance of textbox .

Problem: If we add new <div> elements to existing code, Additional attributes added to <Div> element instead of <Input> due to this problem we are not able to get user entered data during form submission. 

Can someone please suggest how to customize form components.

/libs/fd/af/components/guidetextbox/widget.jsp

          <c:otherwise>

                 <div class="abc">
                 <input type="text" id="${guideid}${'_widget'}" name="${guide:encodeForHtmlAttr(guideField.name,xssAPI)}" ......../>

               </div>

            </c:otherwise>

2 Replies
Khushwant_Singh
Level 4
Level 4

Hi,

It is recommended not to make changes in the /libs branch. Any changes you do make may be lost, because this branch is liable to changes whenever you:

  • upgrade on your instance
  • apply a hotfix
  • install a feature pack

Regarding changing appearance of the text box, you can use inline styling or themes to change the appearance of a component of an adaptive form. See the following articles for more details

I hope it answers your query.

Regards,
Khushwant Singh

Balu_M
Level 3
Level 3

Thanks Khushwant, I will look into provided links.