web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Adding label into web ...
Power Pages
Unanswered

Adding label into web form

(0) ShareShare
ReportReport
Posted on by 253

I have a Terms and Conditions section on my form where the customer opens up the document and then selects Yes/No from a radio button choice.

 

I have been asked to put some additional wording in before the radio button (a label or something similar) which gives a bit of wording dynamically to the customer. Something along the lines of:

 

I [insert individual name] as a duly authorised representative on behalf of [insert company name] hereby confirm that I have read, understood and accept in full [insert full name of the t&c’s which apply for this customer eg Customer Name's International Terms and Conditions of Sale] relative to the supply of Product by Customer Name

Categories:
I have the same question (0)
  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @sammybridge ,

    in fact, these are two questions 🙂

    First, i had a similar request from a customer and build the text in a webtemplate from the field adx_summary (yes, its a misuse) like 

     

    <div id="mytexttobemoved">
    {{ page.adx_summary | replace: "%companyname%",currentcompanyname| replace: "%conditionsofsale%",currentconditionsofsale }}
    </div>

    Of course, you have to find the current values from the referenced entities or whereever. You could also use a snippet as the source for the text, then you do not have to hijack the adx_summary field. Just place as placeholder in the text %companyname% and the other variable fields. You will get the story 🙂

    (i like to do this in the backend as it is faster than doing it in the frontend with jkavascript. The user will alwys see a change in the text then...)

     

    Second: having this in the backend, you have to move the div where you want it as it is hard to have additional info in the form itself.

    so, something like 

    $("#mytexttobemoved").prependTo("targetselectortomoveto");

    This is really ugly.

    If there is only one inputelement you could also do this as an additional info in the adx_copy field.

    In fact, i changed the label of the checkbox for that kind of purpose, as it is diretly at the corresponding inputelements.

    (usually, i have no radios on my pages, so i do not know, how adx PowerAppPortals renders them in the dom, just look at it and you will se whats going on 🙂 )

    Hope this helps and points in a good direction,

      Christian

  • sammybridge Profile Picture
    253 on at

    Hi @chleverenz 

     

    Thanks for your response. When you say you are adding this in the back end, where is it you're actually putting this information?

     

    Thanks

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @sammybridge ,

    usually, i do this kind of things in the webtemplate using liquid code. It's fast and well documented and all setup security applies.

    So, look at the page template, you are using. There can be rewrites or webtemplates. Usually, you should only use web templates. So find the used webtemplate and add yout liquid code there.

    I personally prefer to copy the standardcode and create a new webtemplate and a new pagetemplete and use the new pagetemplate from/for the webpage. Then i can always go back...

    Hope this helps,

      Christian

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard